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/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/swagger.json.sha256 b/kubernetes/.openapi-generator/swagger.json.sha256 index 13c71da64c..b8d404ae1e 100644 --- a/kubernetes/.openapi-generator/swagger.json.sha256 +++ b/kubernetes/.openapi-generator/swagger.json.sha256 @@ -1 +1 @@ -41f7afacdbb6f003accac0a67f01fcf456031d94962f1b3d43d29f6f5921aa24 \ No newline at end of file +44b824826f5738f485c9438677c3b0d4ab5725dbf6317487ac21d4ba5bb55f25 \ No newline at end of file diff --git a/kubernetes/api/openapi.yaml b/kubernetes/api/openapi.yaml index c8190f0e21..af52cc8661 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: @@ -24536,10 +24536,10 @@ paths: tags: - admissionregistration_v1beta1 x-accepts: application/json - /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 @@ -24696,14 +24696,14 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -24801,25 +24801,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: {} @@ -24829,12 +24829,12 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-accepts: application/json 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 @@ -24879,53 +24879,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: {} @@ -24935,17 +24935,17 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -25053,268 +25053,16 @@ 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-contentType: application/json - x-accepts: application/json - 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/json - 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-contentType: application/json - x-accepts: application/json - 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-contentType: application/json x-accepts: application/json - /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 @@ -25332,16 +25080,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: {} @@ -25351,14 +25099,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-accepts: application/json 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 @@ -25423,31 +25171,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: {} @@ -25457,16 +25205,16 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -25515,38 +25263,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: {} @@ -25556,15 +25304,15 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -25721,14 +25469,14 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -25826,25 +25574,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: {} @@ -25854,12 +25602,12 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-accepts: application/json 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 @@ -25904,53 +25652,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: {} @@ -25960,17 +25708,17 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -26078,16 +25826,16 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -26105,16 +25853,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: {} @@ -26124,14 +25872,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-accepts: application/json 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 @@ -26196,31 +25944,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: {} @@ -26230,16 +25978,16 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -26288,38 +26036,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: {} @@ -26329,15 +26077,15 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -43068,39 +42816,17 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /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/json - /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). @@ -43252,19 +42978,25 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -43361,41 +43093,47 @@ 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/json 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). @@ -43439,78 +43177,84 @@ 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-contentType: application/json x-accepts: application/json - /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). @@ -43609,25 +43353,31 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -43640,143 +43390,41 @@ 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/json 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-contentType: application/json - x-accepts: application/json - 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 @@ -43798,6 +43446,8 @@ paths: - description: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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: @@ -43819,111 +43469,442 @@ 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-contentType: application/json + x-accepts: application/json + 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-contentType: application/json x-accepts: application/json - /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/json - /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-contentType: application/json x-accepts: application/json - /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-contentType: application/json + x-accepts: application/json + /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 @@ -44021,48 +44002,73 @@ 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/json - /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/json + /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). @@ -44214,25 +44220,19 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -44329,47 +44329,41 @@ 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/json 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). @@ -44413,84 +44407,78 @@ 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-contentType: application/json x-accepts: application/json - /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). @@ -44589,31 +44577,25 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -44626,44 +44608,38 @@ 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/json 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). @@ -44723,61 +44699,55 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -44821,56 +44791,78 @@ 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-contentType: application/json x-accepts: application/json - /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 + /apis/coordination.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -44894,12 +44886,12 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - coordination_v1 x-accepts: application/json - /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 @@ -44997,41 +44989,41 @@ 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/json - /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 @@ -45190,18 +45182,18 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -45305,40 +45297,40 @@ 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/json 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 @@ -45389,73 +45381,73 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -45565,20 +45557,20 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -45602,33 +45594,33 @@ 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/json 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 @@ -45699,50 +45691,50 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -45797,56 +45789,56 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -45870,9 +45862,9 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1beta1 + - coordination_v1alpha2 x-accepts: application/json - /apis/coordination.k8s.io/v1beta1/leasecandidates: + /apis/coordination.k8s.io/v1alpha2/leasecandidates: get: description: list or watch objects of kind LeaseCandidate operationId: listLeaseCandidateForAllNamespaces @@ -45973,38 +45965,38 @@ 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/json - /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates: + /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates: delete: description: delete collection of LeaseCandidate operationId: deleteCollectionNamespacedLeaseCandidate @@ -46166,12 +46158,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-contentType: application/json x-accepts: application/json @@ -46281,36 +46273,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/json post: description: create a LeaseCandidate @@ -46365,68 +46357,68 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -46541,12 +46533,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-contentType: application/json x-accepts: application/json @@ -46578,27 +46570,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/json patch: description: partially update the specified LeaseCandidate @@ -46675,42 +46667,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-contentType: application/json x-accepts: application/json @@ -46773,79 +46765,56 @@ 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-contentType: application/json x-accepts: application/json - /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 - /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 @@ -46869,12 +46838,12 @@ paths: content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1beta1 x-accepts: application/json - /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 @@ -46972,41 +46941,41 @@ 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/json - /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 @@ -47165,18 +47134,18 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -47280,40 +47249,40 @@ 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/json 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 @@ -47364,73 +47333,73 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -47540,20 +47509,20 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -47577,33 +47546,33 @@ 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/json 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 @@ -47674,50 +47643,50 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -47772,56 +47741,56 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -47842,9 +47811,9 @@ paths: content: {} description: Unauthorized tags: - - events + - discovery x-accepts: application/json - /apis/events.k8s.io/v1/: + /apis/discovery.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -47868,12 +47837,12 @@ paths: content: {} description: Unauthorized tags: - - events_v1 + - discovery_v1 x-accepts: application/json - /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 @@ -47971,41 +47940,41 @@ 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/json - /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 @@ -48164,18 +48133,18 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -48279,40 +48248,40 @@ 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/json 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 @@ -48363,73 +48332,73 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -48539,20 +48508,20 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -48576,33 +48545,33 @@ 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/json 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 @@ -48673,50 +48642,50 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -48771,56 +48740,56 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -48841,9 +48810,9 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver + - events x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1/: + /apis/events.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -48867,20 +48836,23 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - events_v1 x-accepts: application/json - /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". @@ -48889,43 +48861,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 @@ -48940,23 +48881,189 @@ 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/json + /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: |- @@ -49025,19 +49132,25 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -49134,41 +49247,47 @@ 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/json 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). @@ -49212,78 +49331,84 @@ 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-contentType: application/json x-accepts: application/json - /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). @@ -49382,25 +49507,31 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -49413,38 +49544,44 @@ 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/json 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). @@ -49504,55 +49641,61 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -49596,308 +49739,108 @@ 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-contentType: application/json x-accepts: application/json - /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/json - 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-contentType: application/json + - flowcontrolApiserver x-accepts: application/json - 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-contentType: application/json x-accepts: application/json - /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 @@ -50054,14 +49997,14 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -50159,25 +50102,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: {} @@ -50187,12 +50130,12 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + kind: FlowSchema version: v1 x-accepts: application/json 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 @@ -50237,53 +50180,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: {} @@ -50293,17 +50236,17 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -50411,16 +50354,16 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -50438,16 +50381,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: {} @@ -50457,14 +50400,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + kind: FlowSchema version: v1 x-accepts: application/json 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 @@ -50529,31 +50472,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: {} @@ -50563,16 +50506,16 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -50621,38 +50564,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: {} @@ -50662,17 +50605,17 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -50690,16 +50633,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: {} @@ -50709,14 +50652,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + kind: FlowSchema version: v1 x-accepts: application/json 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 @@ -50781,31 +50724,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: {} @@ -50815,16 +50758,16 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -50873,38 +50816,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: {} @@ -50914,68 +50857,15 @@ 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-contentType: application/json x-accepts: application/json - /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 - /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/json - /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 @@ -51128,18 +51018,18 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -51237,40 +51127,40 @@ 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/json 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 @@ -51315,73 +51205,73 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -51485,20 +51375,20 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -51516,33 +51406,33 @@ 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/json 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 @@ -51607,50 +51497,50 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -51699,58 +51589,58 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -51768,33 +51658,33 @@ 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/json 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 @@ -51859,50 +51749,50 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -51951,55 +51841,57 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -52020,9 +51912,9 @@ paths: content: {} description: Unauthorized tags: - - networking + - internalApiserver x-accepts: application/json - /apis/networking.k8s.io/v1/: + /apis/internal.apiserver.k8s.io/v1alpha1/: get: description: get available resources operationId: getAPIResources @@ -52046,12 +51938,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-accepts: application/json - /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 @@ -52204,18 +52096,18 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -52313,40 +52205,40 @@ 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/json 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 @@ -52391,73 +52283,73 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -52561,20 +52453,20 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -52592,33 +52484,33 @@ 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/json 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 @@ -52683,50 +52575,50 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -52775,95 +52667,215 @@ 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-contentType: application/json x-accepts: application/json - /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/json + 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-contentType: application/json + x-accepts: application/json + 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). @@ -52871,92 +52883,143 @@ 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-contentType: application/json + x-accepts: application/json + /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 + /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/json - /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 @@ -53113,14 +53176,14 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -53218,25 +53281,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: {} @@ -53246,12 +53309,12 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: IngressClass version: v1 x-accepts: application/json 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 @@ -53296,53 +53359,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: {} @@ -53352,17 +53415,17 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -53470,16 +53533,16 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -53497,16 +53560,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: {} @@ -53516,14 +53579,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: IngressClass version: v1 x-accepts: application/json 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 @@ -53588,31 +53651,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: {} @@ -53622,16 +53685,16 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -53680,38 +53743,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: {} @@ -53721,22 +53784,148 @@ 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-contentType: application/json x-accepts: application/json - /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/json + /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). @@ -53892,21 +54081,15 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -54003,25 +54186,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: {} @@ -54031,19 +54214,13 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IPAddress version: v1 x-accepts: application/json 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). @@ -54087,53 +54264,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: {} @@ -54143,28 +54320,22 @@ 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-contentType: application/json x-accepts: application/json - /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). @@ -54267,27 +54438,21 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IPAddress version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified Ingress - operationId: readNamespacedIngress + 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). @@ -54300,16 +54465,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: {} @@ -54319,25 +54484,19 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IPAddress version: v1 x-accepts: application/json patch: - description: partially update the specified Ingress - operationId: patchNamespacedIngress + 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). @@ -54397,301 +54556,31 @@ paths: 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-contentType: application/json - x-accepts: application/json - 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 - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status: - get: - description: read status of the specified Ingress - operationId: readNamespacedIngressStatus - parameters: - - description: name of the Ingress - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. Defaults to 'false' - unless the user-agent indicates a browser or command-line HTTP tool (curl - and wget). - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Ingress' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Ingress' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.Ingress' - application/cbor: - schema: - $ref: '#/components/schemas/v1.Ingress' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 - x-accepts: application/json - patch: - description: partially update status of the specified Ingress - operationId: patchNamespacedIngressStatus - parameters: - - description: name of the Ingress - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. Defaults to 'false' - unless the user-agent indicates a browser or command-line HTTP tool (curl - and wget). - in: query - name: pretty - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Ingress' + $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: {} @@ -54701,27 +54590,21 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -54765,38 +54648,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: {} @@ -54806,15 +54689,15 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -54977,14 +54860,14 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -55088,25 +54971,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: {} @@ -55116,12 +54999,12 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: Ingress version: v1 x-accepts: application/json 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 @@ -55172,53 +55055,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: {} @@ -55228,17 +55111,17 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -55352,16 +55235,16 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -55385,16 +55268,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: {} @@ -55404,14 +55287,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: Ingress version: v1 x-accepts: application/json 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 @@ -55482,31 +55365,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: {} @@ -55516,16 +55399,16 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -55580,38 +55463,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: {} @@ -55621,54 +55504,78 @@ 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-contentType: application/json x-accepts: application/json - /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/json + 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). @@ -55676,93 +55583,213 @@ 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-contentType: application/json + x-accepts: application/json + 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-contentType: application/json x-accepts: application/json - /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). @@ -55918,15 +55945,21 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -56023,25 +56056,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: {} @@ -56051,13 +56084,19 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: NetworkPolicy version: v1 x-accepts: application/json 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). @@ -56101,53 +56140,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: {} @@ -56157,22 +56196,28 @@ 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-contentType: application/json x-accepts: application/json - /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). @@ -56275,21 +56320,27 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -56302,16 +56353,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: {} @@ -56321,19 +56372,25 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: NetworkPolicy version: v1 x-accepts: application/json 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). @@ -56393,31 +56450,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: {} @@ -56427,21 +56484,27 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -56485,38 +56548,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: {} @@ -56526,174 +56589,54 @@ 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-contentType: application/json x-accepts: application/json - /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/json - 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-contentType: application/json - x-accepts: application/json - 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). @@ -56701,130 +56644,92 @@ 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-contentType: application/json - x-accepts: application/json - /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/json - /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 @@ -56977,18 +56882,18 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -57086,40 +56991,40 @@ 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/json 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 @@ -57164,73 +57069,73 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -57334,20 +57239,20 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -57365,33 +57270,33 @@ 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/json 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 @@ -57456,50 +57361,50 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -57548,56 +57453,346 @@ 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-contentType: application/json x-accepts: application/json - /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/json + 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-contentType: application/json + x-accepts: application/json + 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-contentType: application/json + x-accepts: application/json + /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/json + /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 @@ -57754,14 +57949,14 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -57859,25 +58054,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: {} @@ -57887,12 +58082,12 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1beta1 x-accepts: application/json 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 @@ -57937,53 +58132,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: {} @@ -57993,17 +58188,17 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -58111,268 +58306,16 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - 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/json - 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-contentType: application/json - x-accepts: application/json - put: - description: replace the specified ServiceCIDR - operationId: replaceServiceCIDR - parameters: - - description: name of the ServiceCIDR - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. Defaults to 'false' - unless the user-agent indicates a browser or command-line HTTP tool (curl - and wget). - in: query - name: pretty - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' - application/cbor: - schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - networking_v1beta1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status: get: - description: read status of the specified ServiceCIDR - operationId: readServiceCIDRStatus + description: read the specified IPAddress + operationId: readIPAddress parameters: - - description: name of the ServiceCIDR + - description: name of the IPAddress in: path name: name required: true @@ -58390,16 +58333,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: {} @@ -58409,14 +58352,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1beta1 x-accepts: application/json patch: - description: partially update status of the specified ServiceCIDR - operationId: patchServiceCIDRStatus + 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 @@ -58481,31 +58424,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: {} @@ -58515,16 +58458,16 @@ 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-contentType: application/json x-accepts: application/json put: - description: replace status of the specified ServiceCIDR - operationId: replaceServiceCIDRStatus + description: replace the specified IPAddress + operationId: replaceIPAddress parameters: - - description: name of the ServiceCIDR + - description: name of the IPAddress in: path name: name required: true @@ -58573,38 +58516,38 @@ 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 "401": content: {} @@ -58614,68 +58557,15 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR + kind: IPAddress version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/networking.k8s.io/v1beta1/watch/ipaddresses: {} - /apis/networking.k8s.io/v1beta1/watch/ipaddresses/{name}: {} - /apis/networking.k8s.io/v1beta1/watch/servicecidrs: {} - /apis/networking.k8s.io/v1beta1/watch/servicecidrs/{name}: {} - /apis/node.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - node - x-accepts: application/json - /apis/node.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/cbor: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - node_v1 - x-accepts: application/json - /apis/node.k8s.io/v1/runtimeclasses: + /apis/networking.k8s.io/v1beta1/servicecidrs: delete: - description: delete collection of RuntimeClass - operationId: deleteCollectionRuntimeClass + description: delete collection of ServiceCIDR + operationId: deleteCollectionServiceCIDR parameters: - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl @@ -58828,18 +58718,18 @@ paths: content: {} description: Unauthorized tags: - - node_v1 + - networking_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind RuntimeClass - operationId: listRuntimeClass + description: list or watch objects of kind ServiceCIDR + operationId: listServiceCIDR parameters: - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl @@ -58937,40 +58827,40 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1beta1.ServiceCIDRList' description: OK "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-accepts: application/json post: - description: create a RuntimeClass - operationId: createRuntimeClass + description: create a ServiceCIDR + operationId: createServiceCIDR parameters: - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl @@ -59015,73 +58905,73 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: Accepted "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/node.k8s.io/v1/runtimeclasses/{name}: + /apis/networking.k8s.io/v1beta1/servicecidrs/{name}: delete: - description: delete a RuntimeClass - operationId: deleteRuntimeClass + description: delete a ServiceCIDR + operationId: deleteServiceCIDR parameters: - - description: name of the RuntimeClass + - description: name of the ServiceCIDR in: path name: name required: true @@ -59185,20 +59075,20 @@ paths: content: {} description: Unauthorized tags: - - node_v1 + - networking_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified RuntimeClass - operationId: readRuntimeClass + description: read the specified ServiceCIDR + operationId: readServiceCIDR parameters: - - description: name of the RuntimeClass + - description: name of the ServiceCIDR in: path name: name required: true @@ -59216,33 +59106,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: OK "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-accepts: application/json patch: - description: partially update the specified RuntimeClass - operationId: patchRuntimeClass + description: partially update the specified ServiceCIDR + operationId: patchServiceCIDR parameters: - - description: name of the RuntimeClass + - description: name of the ServiceCIDR in: path name: name required: true @@ -59307,50 +59197,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: Created "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified RuntimeClass - operationId: replaceRuntimeClass + description: replace the specified ServiceCIDR + operationId: replaceServiceCIDR parameters: - - description: name of the RuntimeClass + - description: name of the ServiceCIDR in: path name: name required: true @@ -59399,55 +59289,309 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1beta1.ServiceCIDR' description: Created "401": content: {} description: Unauthorized tags: - - node_v1 + - networking_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/node.k8s.io/v1/watch/runtimeclasses: {} - /apis/node.k8s.io/v1/watch/runtimeclasses/{name}: {} - /apis/policy/: + /apis/networking.k8s.io/v1beta1/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/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/json + patch: + description: partially update status of the specified ServiceCIDR + operationId: patchServiceCIDRStatus + parameters: + - description: name of the ServiceCIDR + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in an error response + and no further processing of the request. Valid values are: - All: all dry + run stages will be processed' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - networking_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace status of the specified ServiceCIDR + operationId: replaceServiceCIDRStatus + parameters: + - description: name of the ServiceCIDR + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in an error response + and no further processing of the request. Valid values are: - All: all dry + run stages will be processed' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + in: query + name: fieldManager + schema: + type: string + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23. - Warn: This will send a warning via the standard warning response + header for each unknown field that is dropped from the object, and for each + duplicate field that is encountered. The request will still succeed if there + are no other errors, and will only persist the last of any duplicate fields. + This is the default in v1.23+ - Strict: This will fail the request with + a BadRequest error if any unknown fields would be dropped from the object, + or if any duplicate fields are present. The error returned from the server + will contain all unknown and duplicate fields encountered.' + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta1.ServiceCIDR' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - networking_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/networking.k8s.io/v1beta1/watch/ipaddresses: {} + /apis/networking.k8s.io/v1beta1/watch/ipaddresses/{name}: {} + /apis/networking.k8s.io/v1beta1/watch/servicecidrs: {} + /apis/networking.k8s.io/v1beta1/watch/servicecidrs/{name}: {} + /apis/node.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -59468,9 +59612,9 @@ paths: content: {} description: Unauthorized tags: - - policy + - node x-accepts: application/json - /apis/policy/v1/: + /apis/node.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -59494,19 +59638,13 @@ paths: content: {} description: Unauthorized tags: - - policy_v1 + - node_v1 x-accepts: application/json - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets: + /apis/node.k8s.io/v1/runtimeclasses: delete: - description: delete collection of PodDisruptionBudget - operationId: deleteCollectionNamespacedPodDisruptionBudget + description: delete collection of RuntimeClass + operationId: deleteCollectionRuntimeClass parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -59658,25 +59796,19 @@ paths: content: {} description: Unauthorized tags: - - policy_v1 + - node_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind PodDisruptionBudget - operationId: listNamespacedPodDisruptionBudget + description: list or watch objects of kind RuntimeClass + operationId: listRuntimeClass parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -59773,47 +59905,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RuntimeClassList' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 + - node_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: node.k8s.io + kind: RuntimeClass version: v1 x-accepts: application/json post: - description: create a PodDisruptionBudget - operationId: createNamespacedPodDisruptionBudget + description: create a RuntimeClass + operationId: createRuntimeClass parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -59857,84 +59983,78 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' description: Accepted "401": content: {} description: Unauthorized tags: - - policy_v1 + - node_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}: + /apis/node.k8s.io/v1/runtimeclasses/{name}: delete: - description: delete a PodDisruptionBudget - operationId: deleteNamespacedPodDisruptionBudget + description: delete a RuntimeClass + operationId: deleteRuntimeClass parameters: - - description: name of the PodDisruptionBudget + - description: name of the RuntimeClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -60033,301 +60153,25 @@ paths: content: {} description: Unauthorized tags: - - policy_v1 + - node_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - get: - description: read the specified PodDisruptionBudget - operationId: readNamespacedPodDisruptionBudget - parameters: - - description: name of the PodDisruptionBudget - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. Defaults to 'false' - unless the user-agent indicates a browser or command-line HTTP tool (curl - and wget). - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/cbor: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1 - x-accepts: application/json - patch: - description: partially update the specified PodDisruptionBudget - operationId: patchNamespacedPodDisruptionBudget - parameters: - - description: name of the PodDisruptionBudget - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. Defaults to 'false' - unless the user-agent indicates a browser or command-line HTTP tool (curl - and wget). - in: query - name: pretty - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - 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.PodDisruptionBudget' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/cbor: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/cbor: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - policy_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json - x-accepts: application/json - put: - description: replace the specified PodDisruptionBudget - operationId: replaceNamespacedPodDisruptionBudget - parameters: - - description: name of the PodDisruptionBudget - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. Defaults to 'false' - unless the user-agent indicates a browser or command-line HTTP tool (curl - and wget). - in: query - name: pretty - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23. - Warn: This will send a warning via the standard warning response - header for each unknown field that is dropped from the object, and for each - duplicate field that is encountered. The request will still succeed if there - are no other errors, and will only persist the last of any duplicate fields. - This is the default in v1.23+ - Strict: This will fail the request with - a BadRequest error if any unknown fields would be dropped from the object, - or if any duplicate fields are present. The error returned from the server - will contain all unknown and duplicate fields encountered.' - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/cbor: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/cbor: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - policy_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status: get: - description: read status of the specified PodDisruptionBudget - operationId: readNamespacedPodDisruptionBudgetStatus + description: read the specified RuntimeClass + operationId: readRuntimeClass parameters: - - description: name of the PodDisruptionBudget + - description: name of the RuntimeClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -60340,44 +60184,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 + - node_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: node.k8s.io + kind: RuntimeClass version: v1 x-accepts: application/json patch: - description: partially update status of the specified PodDisruptionBudget - operationId: patchNamespacedPodDisruptionBudgetStatus + description: partially update the specified RuntimeClass + operationId: patchRuntimeClass parameters: - - description: name of the PodDisruptionBudget + - description: name of the RuntimeClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -60437,61 +60275,55 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' description: Created "401": content: {} description: Unauthorized tags: - - policy_v1 + - node_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace status of the specified PodDisruptionBudget - operationId: replaceNamespacedPodDisruptionBudgetStatus + description: replace the specified RuntimeClass + operationId: replaceRuntimeClass parameters: - - description: name of the PodDisruptionBudget + - description: name of the RuntimeClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -60535,188 +60367,55 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RuntimeClass' description: Created "401": content: {} description: Unauthorized tags: - - policy_v1 + - node_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/policy/v1/poddisruptionbudgets: - get: - description: list or watch objects of kind PodDisruptionBudget - operationId: listPodDisruptionBudgetForAllNamespaces - parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. Defaults to 'false' - unless the user-agent indicates a browser or command-line HTTP tool (curl - and wget). - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/cbor: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - application/cbor-seq: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1 - x-accepts: application/json - /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets: {} - /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}: {} - /apis/policy/v1/watch/poddisruptionbudgets: {} - /apis/rbac.authorization.k8s.io/: + /apis/node.k8s.io/v1/watch/runtimeclasses: {} + /apis/node.k8s.io/v1/watch/runtimeclasses/{name}: {} + /apis/policy/: get: description: get information of a group operationId: getAPIGroup @@ -60737,9 +60436,9 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization + - policy x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/: + /apis/policy/v1/: get: description: get available resources operationId: getAPIResources @@ -60763,13 +60462,19 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/clusterrolebindings: + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets: delete: - description: delete collection of ClusterRoleBinding - operationId: deleteCollectionClusterRoleBinding + description: delete collection of PodDisruptionBudget + operationId: deleteCollectionNamespacedPodDisruptionBudget parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -60921,19 +60626,25 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ClusterRoleBinding - operationId: listClusterRoleBinding + description: list or watch objects of kind PodDisruptionBudget + operationId: listNamespacedPodDisruptionBudget parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -61030,41 +60741,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: policy + kind: PodDisruptionBudget version: v1 x-accepts: application/json post: - description: create a ClusterRoleBinding - operationId: createClusterRoleBinding + description: create a PodDisruptionBudget + operationId: createNamespacedPodDisruptionBudget parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -61108,78 +60825,84 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}: + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}: delete: - description: delete a ClusterRoleBinding - operationId: deleteClusterRoleBinding + description: delete a PodDisruptionBudget + operationId: deleteNamespacedPodDisruptionBudget parameters: - - description: name of the ClusterRoleBinding + - description: name of the PodDisruptionBudget in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -61278,25 +61001,31 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ClusterRoleBinding - operationId: readClusterRoleBinding + description: read the specified PodDisruptionBudget + operationId: readNamespacedPodDisruptionBudget parameters: - - description: name of the ClusterRoleBinding + - description: name of the PodDisruptionBudget in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -61309,38 +61038,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: policy + kind: PodDisruptionBudget version: v1 x-accepts: application/json patch: - description: partially update the specified ClusterRoleBinding - operationId: patchClusterRoleBinding + description: partially update the specified PodDisruptionBudget + operationId: patchNamespacedPodDisruptionBudget parameters: - - description: name of the ClusterRoleBinding + - description: name of the PodDisruptionBudget in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -61400,55 +61135,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified ClusterRoleBinding - operationId: replaceClusterRoleBinding + description: replace the specified PodDisruptionBudget + operationId: replaceNamespacedPodDisruptionBudget parameters: - - description: name of the ClusterRoleBinding + - description: name of the PodDisruptionBudget in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -61492,56 +61233,510 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/clusterroles: + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status: + get: + description: read status of the specified PodDisruptionBudget + operationId: readNamespacedPodDisruptionBudgetStatus + parameters: + - description: name of the PodDisruptionBudget + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - policy_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: policy + kind: PodDisruptionBudget + version: v1 + x-accepts: application/json + patch: + description: partially update status of the specified PodDisruptionBudget + operationId: patchNamespacedPodDisruptionBudgetStatus + parameters: + - description: name of the PodDisruptionBudget + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in an error response + and no further processing of the request. Valid values are: - All: all dry + run stages will be processed' + in: query + name: dryRun + schema: + type: string + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + 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.PodDisruptionBudget' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - policy_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: policy + kind: PodDisruptionBudget + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: replace status of the specified PodDisruptionBudget + operationId: replaceNamespacedPodDisruptionBudgetStatus + parameters: + - description: name of the PodDisruptionBudget + in: path + name: name + required: true + schema: + type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: 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.PodDisruptionBudget' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudget' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - policy_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: policy + kind: PodDisruptionBudget + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/policy/v1/poddisruptionbudgets: + get: + description: list or watch objects of kind PodDisruptionBudget + operationId: listPodDisruptionBudgetForAllNamespaces + parameters: + - description: allowWatchBookmarks requests watch events with type "BOOKMARK". + Servers that do not implement bookmarks may ignore this flag and bookmarks + are sent at the server's discretion. Clients should not assume bookmarks + are returned at any specific interval, nor may they assume the server will + send any BOOKMARK event during a session. If this is not a watch, this field + is ignored. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - policy_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: policy + kind: PodDisruptionBudget + version: v1 + x-accepts: application/json + /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets: {} + /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}: {} + /apis/policy/v1/watch/poddisruptionbudgets: {} + /apis/rbac.authorization.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - rbacAuthorization + x-accepts: application/json + /apis/rbac.authorization.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: + - rbacAuthorization_v1 + x-accepts: application/json + /apis/rbac.authorization.k8s.io/v1/clusterrolebindings: delete: - description: delete collection of ClusterRole - operationId: deleteCollectionClusterRole + description: delete collection of ClusterRoleBinding + operationId: deleteCollectionClusterRoleBinding parameters: - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl @@ -61698,14 +61893,14 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: ClusterRole + kind: ClusterRoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind ClusterRole - operationId: listClusterRole + description: list or watch objects of kind ClusterRoleBinding + operationId: listClusterRoleBinding parameters: - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl @@ -61803,25 +61998,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' description: OK "401": content: {} @@ -61831,12 +62026,12 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: ClusterRole + kind: ClusterRoleBinding version: v1 x-accepts: application/json post: - description: create a ClusterRole - operationId: createClusterRole + description: create a ClusterRoleBinding + operationId: createClusterRoleBinding parameters: - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl @@ -61881,53 +62076,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Accepted "401": content: {} @@ -61937,17 +62132,17 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: ClusterRole + kind: ClusterRoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}: + /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}: delete: - description: delete a ClusterRole - operationId: deleteClusterRole + description: delete a ClusterRoleBinding + operationId: deleteClusterRoleBinding parameters: - - description: name of the ClusterRole + - description: name of the ClusterRoleBinding in: path name: name required: true @@ -62055,16 +62250,16 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: ClusterRole + kind: ClusterRoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified ClusterRole - operationId: readClusterRole + description: read the specified ClusterRoleBinding + operationId: readClusterRoleBinding parameters: - - description: name of the ClusterRole + - description: name of the ClusterRoleBinding in: path name: name required: true @@ -62082,16 +62277,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "401": content: {} @@ -62101,14 +62296,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: ClusterRole + kind: ClusterRoleBinding version: v1 x-accepts: application/json patch: - description: partially update the specified ClusterRole - operationId: patchClusterRole + description: partially update the specified ClusterRoleBinding + operationId: patchClusterRoleBinding parameters: - - description: name of the ClusterRole + - description: name of the ClusterRoleBinding in: path name: name required: true @@ -62173,31 +62368,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Created "401": content: {} @@ -62207,16 +62402,16 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: ClusterRole + kind: ClusterRoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified ClusterRole - operationId: replaceClusterRole + description: replace the specified ClusterRoleBinding + operationId: replaceClusterRoleBinding parameters: - - description: name of the ClusterRole + - description: name of the ClusterRoleBinding in: path name: name required: true @@ -62265,38 +62460,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Created "401": content: {} @@ -62306,22 +62501,16 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: ClusterRole + kind: ClusterRoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings: + /apis/rbac.authorization.k8s.io/v1/clusterroles: delete: - description: delete collection of RoleBinding - operationId: deleteCollectionNamespacedRoleBinding + description: delete collection of ClusterRole + operationId: deleteCollectionClusterRole parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -62477,21 +62666,15 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: RoleBinding + kind: ClusterRole version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind RoleBinding - operationId: listNamespacedRoleBinding + description: list or watch objects of kind ClusterRole + operationId: listClusterRole parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -62588,25 +62771,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.ClusterRoleList' description: OK "401": content: {} @@ -62616,19 +62799,13 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: RoleBinding + kind: ClusterRole version: v1 x-accepts: application/json post: - description: create a RoleBinding - operationId: createNamespacedRoleBinding + description: create a ClusterRole + operationId: createClusterRole parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -62672,53 +62849,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' description: Accepted "401": content: {} @@ -62728,28 +62905,22 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: RoleBinding + kind: ClusterRole version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}: + /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}: delete: - description: delete a RoleBinding - operationId: deleteNamespacedRoleBinding + description: delete a ClusterRole + operationId: deleteClusterRole parameters: - - description: name of the RoleBinding + - description: name of the ClusterRole in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -62852,27 +63023,21 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: RoleBinding + kind: ClusterRole version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified RoleBinding - operationId: readNamespacedRoleBinding + description: read the specified ClusterRole + operationId: readClusterRole parameters: - - description: name of the RoleBinding + - description: name of the ClusterRole in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -62885,16 +63050,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' description: OK "401": content: {} @@ -62904,25 +63069,19 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: RoleBinding + kind: ClusterRole version: v1 x-accepts: application/json patch: - description: partially update the specified RoleBinding - operationId: patchNamespacedRoleBinding + description: partially update the specified ClusterRole + operationId: patchClusterRole parameters: - - description: name of the RoleBinding + - description: name of the ClusterRole in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -62982,31 +63141,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' description: Created "401": content: {} @@ -63016,27 +63175,21 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: RoleBinding + kind: ClusterRole version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified RoleBinding - operationId: replaceNamespacedRoleBinding + description: replace the specified ClusterRole + operationId: replaceClusterRole parameters: - - description: name of the RoleBinding + - description: name of the ClusterRole in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -63080,38 +63233,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.ClusterRole' description: Created "401": content: {} @@ -63121,15 +63274,15 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: RoleBinding + kind: ClusterRole version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings: delete: - description: delete collection of Role - operationId: deleteCollectionNamespacedRole + description: delete collection of RoleBinding + operationId: deleteCollectionNamespacedRoleBinding parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -63292,14 +63445,14 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: Role + kind: RoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind Role - operationId: listNamespacedRole + description: list or watch objects of kind RoleBinding + operationId: listNamespacedRoleBinding parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -63403,25 +63556,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.RoleBindingList' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.RoleBindingList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.RoleBindingList' application/cbor: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.RoleBindingList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.RoleBindingList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.RoleBindingList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.RoleBindingList' description: OK "401": content: {} @@ -63431,12 +63584,12 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: Role + kind: RoleBinding version: v1 x-accepts: application/json post: - description: create a Role - operationId: createNamespacedRole + description: create a RoleBinding + operationId: createNamespacedRoleBinding parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -63487,53 +63640,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' description: Accepted "401": content: {} @@ -63543,17 +63696,17 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: Role + kind: RoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}: delete: - description: delete a Role - operationId: deleteNamespacedRole + description: delete a RoleBinding + operationId: deleteNamespacedRoleBinding parameters: - - description: name of the Role + - description: name of the RoleBinding in: path name: name required: true @@ -63667,16 +63820,16 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: Role + kind: RoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified Role - operationId: readNamespacedRole + description: read the specified RoleBinding + operationId: readNamespacedRoleBinding parameters: - - description: name of the Role + - description: name of the RoleBinding in: path name: name required: true @@ -63700,16 +63853,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' description: OK "401": content: {} @@ -63719,14 +63872,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: Role + kind: RoleBinding version: v1 x-accepts: application/json patch: - description: partially update the specified Role - operationId: patchNamespacedRole + description: partially update the specified RoleBinding + operationId: patchNamespacedRoleBinding parameters: - - description: name of the Role + - description: name of the RoleBinding in: path name: name required: true @@ -63797,31 +63950,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' description: Created "401": content: {} @@ -63831,16 +63984,16 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: Role + kind: RoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified Role - operationId: replaceNamespacedRole + description: replace the specified RoleBinding + operationId: replaceNamespacedRoleBinding parameters: - - description: name of the Role + - description: name of the RoleBinding in: path name: name required: true @@ -63895,38 +64048,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.RoleBinding' description: Created "401": content: {} @@ -63936,26 +64089,29 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: Role + kind: RoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/rolebindings: - get: - description: list or watch objects of kind RoleBinding - operationId: listRoleBindingForAllNamespaces + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles: + delete: + description: delete collection of Role + operationId: deleteCollectionNamespacedRole parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output 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 + 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". @@ -63964,12 +64120,43 @@ 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 @@ -63984,374 +64171,23 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. Defaults to 'false' - unless the user-agent indicates a browser or command-line HTTP tool (curl - and wget). + - description: 'Deprecated: please use the PropagationPolicy, this field will + be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, + the "orphan" finalizer will be added to/removed from the object''s finalizers + list. Either this field or PropagationPolicy may be set, but not both.' in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.RoleBindingList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.RoleBindingList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.RoleBindingList' - application/cbor: - schema: - $ref: '#/components/schemas/v1.RoleBindingList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.RoleBindingList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.RoleBindingList' - application/cbor-seq: - schema: - $ref: '#/components/schemas/v1.RoleBindingList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - rbacAuthorization_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding - version: v1 - x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/roles: - get: - description: list or watch objects of kind Role - operationId: listRoleForAllNamespaces - parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. Defaults to 'false' - unless the user-agent indicates a browser or command-line HTTP tool (curl - and wget). - in: query - name: pretty - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.RoleList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.RoleList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.RoleList' - application/cbor: - schema: - $ref: '#/components/schemas/v1.RoleList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.RoleList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.RoleList' - application/cbor-seq: - schema: - $ref: '#/components/schemas/v1.RoleList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - rbacAuthorization_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role - version: v1 - x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings: {} - /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/clusterroles: {} - /apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/rolebindings: {} - /apis/rbac.authorization.k8s.io/v1/watch/roles: {} - /apis/resource.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource - x-accepts: application/json - /apis/resource.k8s.io/v1alpha3/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/cbor: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha3 - x-accepts: application/json - /apis/resource.k8s.io/v1alpha3/deviceclasses: - delete: - description: delete collection of DeviceClass - operationId: deleteCollectionDeviceClass - parameters: - - description: If 'true', then the output is pretty printed. Defaults to 'false' - unless the user-agent indicates a browser or command-line HTTP tool (curl - and wget). - 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 + 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: |- @@ -64420,19 +64256,25 @@ paths: content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind DeviceClass - operationId: listDeviceClass + description: list or watch objects of kind Role + operationId: listNamespacedRole parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -64529,41 +64371,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.RoleList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.RoleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.RoleList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.RoleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.RoleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.RoleList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClassList' + $ref: '#/components/schemas/v1.RoleList' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-accepts: application/json post: - description: create a DeviceClass - operationId: createDeviceClass + description: create a Role + operationId: createNamespacedRole parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -64607,78 +64455,84 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha3/deviceclasses/{name}: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}: delete: - description: delete a DeviceClass - operationId: deleteDeviceClass + description: delete a Role + operationId: deleteNamespacedRole parameters: - - description: name of the DeviceClass + - description: name of the Role in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -64747,55 +64601,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Status' description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified DeviceClass - operationId: readDeviceClass + description: read the specified Role + operationId: readNamespacedRole parameters: - - description: name of the DeviceClass + - description: name of the Role in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -64808,38 +64668,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-accepts: application/json patch: - description: partially update the specified DeviceClass - operationId: patchDeviceClass + description: partially update the specified Role + operationId: patchNamespacedRole parameters: - - description: name of the DeviceClass + - description: name of the Role in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -64899,55 +64765,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified DeviceClass - operationId: replaceDeviceClass + description: replace the specified Role + operationId: replaceNamespacedRole parameters: - - description: name of the DeviceClass + - description: name of the Role in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -64991,56 +64863,379 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceClass' + $ref: '#/components/schemas/v1.Role' description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass - version: v1alpha3 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha3/devicetaintrules: + /apis/rbac.authorization.k8s.io/v1/rolebindings: + get: + description: list or watch objects of kind RoleBinding + operationId: listRoleBindingForAllNamespaces + parameters: + - description: allowWatchBookmarks requests watch events with type "BOOKMARK". + Servers that do not implement bookmarks may ignore this flag and bookmarks + are sent at the server's discretion. Clients should not assume bookmarks + are returned at any specific interval, nor may they assume the server will + send any BOOKMARK event during a session. If this is not a watch, this field + is ignored. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.RoleBindingList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - rbacAuthorization_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 + x-accepts: application/json + /apis/rbac.authorization.k8s.io/v1/roles: + get: + description: list or watch objects of kind Role + operationId: listRoleForAllNamespaces + parameters: + - description: allowWatchBookmarks requests watch events with type "BOOKMARK". + Servers that do not implement bookmarks may ignore this flag and bookmarks + are sent at the server's discretion. Clients should not assume bookmarks + are returned at any specific interval, nor may they assume the server will + send any BOOKMARK event during a session. If this is not a watch, this field + is ignored. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.RoleList' + application/cbor-seq: + schema: + $ref: '#/components/schemas/v1.RoleList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - rbacAuthorization_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: rbac.authorization.k8s.io + kind: Role + version: v1 + x-accepts: application/json + /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings: {} + /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/clusterroles: {} + /apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/rolebindings: {} + /apis/rbac.authorization.k8s.io/v1/watch/roles: {} + /apis/resource.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource + x-accepts: application/json + /apis/resource.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: + - resource_v1 + x-accepts: application/json + /apis/resource.k8s.io/v1/deviceclasses: delete: - description: delete collection of DeviceTaintRule - operationId: deleteCollectionDeviceTaintRule + description: delete collection of DeviceClass + operationId: deleteCollectionDeviceClass parameters: - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl @@ -65193,18 +65388,18 @@ 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: DeviceClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: list or watch objects of kind DeviceTaintRule - operationId: listDeviceTaintRule + description: list or watch objects of kind DeviceClass + operationId: listDeviceClass parameters: - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl @@ -65302,40 +65497,40 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: '#/components/schemas/v1.DeviceClassList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: '#/components/schemas/v1.DeviceClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: '#/components/schemas/v1.DeviceClassList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: '#/components/schemas/v1.DeviceClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: '#/components/schemas/v1.DeviceClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: '#/components/schemas/v1.DeviceClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $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: DeviceTaintRule - version: v1alpha3 + kind: DeviceClass + version: v1 x-accepts: application/json post: - description: create a DeviceTaintRule - operationId: createDeviceTaintRule + description: create a DeviceClass + operationId: createDeviceClass parameters: - description: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl @@ -65380,73 +65575,73 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $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: DeviceTaintRule - version: v1alpha3 + kind: DeviceClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}: + /apis/resource.k8s.io/v1/deviceclasses/{name}: delete: - description: delete a DeviceTaintRule - operationId: deleteDeviceTaintRule + description: delete a DeviceClass + operationId: deleteDeviceClass parameters: - - description: name of the DeviceTaintRule + - description: name of the DeviceClass in: path name: name required: true @@ -65520,50 +65715,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $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: DeviceTaintRule - version: v1alpha3 + kind: DeviceClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json get: - description: read the specified DeviceTaintRule - operationId: readDeviceTaintRule + description: read the specified DeviceClass + operationId: readDeviceClass parameters: - - description: name of the DeviceTaintRule + - description: name of the DeviceClass in: path name: name required: true @@ -65581,33 +65776,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $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: DeviceTaintRule - version: v1alpha3 + kind: DeviceClass + version: v1 x-accepts: application/json patch: - description: partially update the specified DeviceTaintRule - operationId: patchDeviceTaintRule + description: partially update the specified DeviceClass + operationId: patchDeviceClass parameters: - - description: name of the DeviceTaintRule + - description: name of the DeviceClass in: path name: name required: true @@ -65672,50 +65867,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $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: DeviceTaintRule - version: v1alpha3 + kind: DeviceClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json put: - description: replace the specified DeviceTaintRule - operationId: replaceDeviceTaintRule + description: replace the specified DeviceClass + operationId: replaceDeviceClass parameters: - - description: name of the DeviceTaintRule + - description: name of the DeviceClass in: path name: name required: true @@ -65764,53 +65959,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: '#/components/schemas/v1.DeviceClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $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: DeviceTaintRule - version: v1alpha3 + kind: DeviceClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims: + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims: delete: description: delete collection of ResourceClaim operationId: deleteCollectionNamespacedResourceClaim @@ -65972,12 +66167,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io kind: ResourceClaim - version: v1alpha3 + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json @@ -66087,36 +66282,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/json post: description: create a ResourceClaim @@ -66171,68 +66366,68 @@ 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 "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-contentType: application/json x-accepts: application/json - /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 @@ -66317,42 +66512,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-contentType: application/json x-accepts: application/json @@ -66384,27 +66579,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/json patch: description: partially update the specified ResourceClaim @@ -66481,42 +66676,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-contentType: application/json x-accepts: application/json @@ -66579,53 +66774,53 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -66654,27 +66849,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/json patch: description: partially update status of the specified ResourceClaim @@ -66751,42 +66946,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-contentType: application/json x-accepts: application/json @@ -66849,53 +67044,53 @@ 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-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates: + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates: delete: description: delete collection of ResourceClaimTemplate operationId: deleteCollectionNamespacedResourceClaimTemplate @@ -67057,12 +67252,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-contentType: application/json x-accepts: application/json @@ -67172,36 +67367,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/json post: description: create a ResourceClaimTemplate @@ -67256,68 +67451,68 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -67402,42 +67597,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-contentType: application/json x-accepts: application/json @@ -67469,27 +67664,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/json patch: description: partially update the specified ResourceClaimTemplate @@ -67566,42 +67761,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-contentType: application/json x-accepts: application/json @@ -67664,53 +67859,53 @@ 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-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha3/resourceclaims: + /apis/resource.k8s.io/v1/resourceclaims: get: description: list or watch objects of kind ResourceClaim operationId: listResourceClaimForAllNamespaces @@ -67811,38 +68006,38 @@ 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/json - /apis/resource.k8s.io/v1alpha3/resourceclaimtemplates: + /apis/resource.k8s.io/v1/resourceclaimtemplates: get: description: list or watch objects of kind ResourceClaimTemplate operationId: listResourceClaimTemplateForAllNamespaces @@ -67943,38 +68138,38 @@ 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/json - /apis/resource.k8s.io/v1alpha3/resourceslices: + /apis/resource.k8s.io/v1/resourceslices: delete: description: delete collection of ResourceSlice operationId: deleteCollectionResourceSlice @@ -68130,12 +68325,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-contentType: application/json x-accepts: application/json @@ -68239,36 +68434,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/json post: description: create a ResourceSlice @@ -68317,68 +68512,68 @@ 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-contentType: application/json x-accepts: application/json - /apis/resource.k8s.io/v1alpha3/resourceslices/{name}: + /apis/resource.k8s.io/v1/resourceslices/{name}: delete: description: delete a ResourceSlice operationId: deleteResourceSlice @@ -68457,42 +68652,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-contentType: application/json x-accepts: application/json @@ -68518,27 +68713,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/json patch: description: partially update the specified ResourceSlice @@ -68609,42 +68804,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-contentType: application/json x-accepts: application/json @@ -68701,65 +68896,63 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -68783,12 +68976,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1alpha3 x-accepts: application/json - /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 @@ -68941,18 +69134,18 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -69050,40 +69243,40 @@ 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/json 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 @@ -69128,73 +69321,73 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -69268,50 +69461,50 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -69329,33 +69522,33 @@ 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/json 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 @@ -69420,50 +69613,50 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -69512,63 +69705,85 @@ 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-contentType: application/json x-accepts: application/json - /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/json + /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). @@ -69724,21 +69939,15 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -69835,25 +70044,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: {} @@ -69863,19 +70072,13 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta1 x-accepts: application/json 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). @@ -69919,53 +70122,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: {} @@ -69975,28 +70178,22 @@ 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-contentType: application/json x-accepts: application/json - /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). @@ -70065,31 +70262,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: {} @@ -70099,297 +70296,21 @@ 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-contentType: application/json - x-accepts: application/json - 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/json - 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-contentType: application/json - x-accepts: application/json - 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-contentType: application/json x-accepts: application/json - /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). @@ -70402,16 +70323,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: {} @@ -70421,25 +70342,19 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta1 x-accepts: application/json 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). @@ -70499,31 +70414,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: {} @@ -70533,27 +70448,21 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -70597,38 +70506,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: {} @@ -70638,15 +70547,15 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -70809,14 +70718,14 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -70920,25 +70829,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: {} @@ -70948,12 +70857,12 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta1 x-accepts: application/json 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 @@ -71004,53 +70913,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: {} @@ -71060,17 +70969,17 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -71150,31 +71059,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: {} @@ -71184,16 +71093,16 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -71217,16 +71126,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: {} @@ -71236,14 +71145,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceClaim version: v1beta1 x-accepts: application/json 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 @@ -71314,31 +71223,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: {} @@ -71348,16 +71257,16 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -71412,38 +71321,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: {} @@ -71453,54 +71362,78 @@ 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-contentType: application/json x-accepts: application/json - /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/json + 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). @@ -71508,131 +71441,113 @@ 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-contentType: application/json x-accepts: application/json - /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). @@ -71640,93 +71555,99 @@ 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-contentType: application/json x-accepts: application/json - /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). @@ -71882,15 +71803,21 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -71987,25 +71914,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: {} @@ -72015,13 +71942,19 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta1 x-accepts: application/json 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). @@ -72065,53 +71998,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: {} @@ -72121,22 +72054,28 @@ 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-contentType: application/json x-accepts: application/json - /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). @@ -72205,31 +72144,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: {} @@ -72239,21 +72178,27 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -72266,16 +72211,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: {} @@ -72285,19 +72230,25 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice + kind: ResourceClaimTemplate version: v1beta1 x-accepts: application/json 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). @@ -72357,31 +72308,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: {} @@ -72391,21 +72342,27 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -72449,38 +72406,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: {} @@ -72490,59 +72447,26 @@ 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-contentType: application/json x-accepts: application/json - /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/json - /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". @@ -72551,43 +72475,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 @@ -72602,23 +72495,315 @@ 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/json + /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/json + /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: |- @@ -72687,18 +72872,18 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -72796,40 +72981,40 @@ 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/json 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 @@ -72874,73 +73059,73 @@ 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-contentType: application/json x-accepts: application/json - /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 @@ -73014,50 +73199,50 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -73075,33 +73260,33 @@ 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/json 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 @@ -73166,50 +73351,50 @@ 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-contentType: application/json x-accepts: application/json 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 @@ -73258,63 +73443,93 @@ 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-contentType: application/json x-accepts: application/json - /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/json + /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). @@ -73470,21 +73685,15 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -73581,25 +73790,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: {} @@ -73609,19 +73818,13 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta2 x-accepts: application/json 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). @@ -73665,53 +73868,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: {} @@ -73721,28 +73924,22 @@ 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-contentType: application/json x-accepts: application/json - /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). @@ -73811,31 +74008,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: {} @@ -73845,27 +74042,21 @@ 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-contentType: application/json x-accepts: application/json 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). @@ -73878,16 +74069,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: {} @@ -73897,25 +74088,19 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: DeviceClass version: v1beta2 x-accepts: application/json 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). @@ -73975,31 +74160,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 "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: {} @@ -74009,27 +74194,836 @@ 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-contentType: application/json x-accepts: application/json put: - description: replace the specified ResourceClaim - operationId: replaceNamespacedResourceClaim + 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). + 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.DeviceClass' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + application/cbor: + schema: + $ref: '#/components/schemas/v1beta2.DeviceClass' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/resource.k8s.io/v1beta2/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_v1beta2 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + 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 + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. Defaults 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/v1beta2.ResourceClaimList' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.ResourceClaimList' + application/vnd.kubernetes.protobuf: + schema: + $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: + - resource_v1beta2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-accepts: application/json + 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/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 + "202": + 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: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}: + delete: + description: delete a ResourceClaim + operationId: deleteNamespacedResourceClaim + 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: The duration in seconds before the object should be deleted. + Value must be non-negative integer. The value zero indicates delete immediately. + If this value is nil, the default grace period for the specified type will + be used. Defaults to a per object value if not specified. zero means delete + immediately. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'if set to true, it will trigger an unsafe deletion of the resource + in case the normal deletion flow fails with a corrupt object error. A resource + is considered corrupt if it can not be retrieved from the underlying storage + successfully because of a) its data can not be transformed e.g. decryption + failure, or b) it fails to decode into an object. NOTE: unsafe deletion + ignores finalizer constraints, skips precondition checks, and removes the + object from the storage. WARNING: This may potentially break the cluster + if the workload associated with the resource being unsafe-deleted relies + on normal deletion flow. Use only if you REALLY know what you are doing. + The default value is false, and the user must opt in to enable it' + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: 'Deprecated: please use the PropagationPolicy, this field will + be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, + the "orphan" finalizer will be added to/removed from the object''s finalizers + list. Either this field or PropagationPolicy may be set, but not both.' + in: query + name: orphanDependents + schema: + type: boolean + - description: 'Whether and how garbage collection will be performed. Either + this field or OrphanDependents may be set, but not both. The default policy + is decided by the existing finalizer set in the metadata.finalizers and + the resource-specific default policy. Acceptable values are: ''Orphan'' + - orphan the dependents; ''Background'' - allow the garbage collector to + delete the dependents in the background; ''Foreground'' - a cascading policy + that deletes all dependents in the foreground.' + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.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 + "202": + 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: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + 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/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/json + 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/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-contentType: application/json + x-accepts: application/json + 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). @@ -81415,44 +82409,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /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/json - /apis/storage.k8s.io/v1alpha1/volumeattributesclasses: + /apis/storage.k8s.io/v1/volumeattributesclasses: delete: description: delete collection of VolumeAttributesClass operationId: deleteCollectionVolumeAttributesClass @@ -81608,12 +82565,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 + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json @@ -81717,36 +82674,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttributesClassList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttributesClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttributesClassList' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttributesClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttributesClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttributesClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1.VolumeAttributesClassList' 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 + version: v1 x-accepts: application/json post: description: create a VolumeAttributesClass @@ -81795,68 +82752,68 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' 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 + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}: + /apis/storage.k8s.io/v1/volumeattributesclasses/{name}: delete: description: delete a VolumeAttributesClass operationId: deleteVolumeAttributesClass @@ -81935,42 +82892,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' 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 + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json @@ -81996,27 +82953,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' 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 + version: v1 x-accepts: application/json patch: description: partially update the specified VolumeAttributesClass @@ -82087,42 +83044,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' 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 + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json @@ -82179,55 +83136,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: '#/components/schemas/v1.VolumeAttributesClass' 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 + version: v1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /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/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 @@ -82251,9 +83219,9 @@ paths: content: {} description: Unauthorized tags: - - storage_v1beta1 + - storage_v1alpha1 x-accepts: application/json - /apis/storage.k8s.io/v1beta1/volumeattributesclasses: + /apis/storage.k8s.io/v1alpha1/volumeattributesclasses: delete: description: delete collection of VolumeAttributesClass operationId: deleteCollectionVolumeAttributesClass @@ -82409,12 +83377,12 @@ paths: content: {} description: Unauthorized tags: - - storage_v1beta1 + - storage_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: storage.k8s.io kind: VolumeAttributesClass - version: v1beta1 + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json @@ -82518,36 +83486,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - storage_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: storage.k8s.io kind: VolumeAttributesClass - version: v1beta1 + version: v1alpha1 x-accepts: application/json post: description: create a VolumeAttributesClass @@ -82596,68 +83564,68 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - storage_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: storage.k8s.io kind: VolumeAttributesClass - version: v1beta1 + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}: + /apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}: delete: description: delete a VolumeAttributesClass operationId: deleteVolumeAttributesClass @@ -82736,42 +83704,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - storage_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: storage.k8s.io kind: VolumeAttributesClass - version: v1beta1 + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json @@ -82797,27 +83765,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - storage_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: storage.k8s.io kind: VolumeAttributesClass - version: v1beta1 + version: v1alpha1 x-accepts: application/json patch: description: partially update the specified VolumeAttributesClass @@ -82888,42 +83856,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - storage_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: storage.k8s.io kind: VolumeAttributesClass - version: v1beta1 + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json @@ -82980,78 +83948,879 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' description: Created "401": content: {} description: Unauthorized tags: - - storage_v1beta1 + - storage_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: storage.k8s.io kind: VolumeAttributesClass - version: v1beta1 + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /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 - /apis/storagemigration.k8s.io/v1alpha1/: + /apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses: {} + /apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses/{name}: {} + /apis/storage.k8s.io/v1beta1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/cbor: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-accepts: application/json + /apis/storage.k8s.io/v1beta1/volumeattributesclasses: + delete: + description: delete collection of VolumeAttributesClass + operationId: deleteCollectionVolumeAttributesClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is 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: + - storage_v1beta1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + get: + description: list or watch objects of kind VolumeAttributesClass + operationId: listVolumeAttributesClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: allowWatchBookmarks requests watch events with type "BOOKMARK". + Servers that do not implement bookmarks may ignore this flag and bookmarks + are sent at the server's discretion. Clients should not assume bookmarks + are returned at any specific interval, nor may they assume the server will + send any BOOKMARK event during a session. If this is not a watch, this field + is ignored. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is 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/json + post: + description: create a VolumeAttributesClass + operationId: createVolumeAttributesClass + parameters: + - description: If 'true', then the output is pretty printed. Defaults to 'false' + unless the user-agent indicates a browser or command-line HTTP tool (curl + and wget). + in: query + name: pretty + schema: + type: string + - description: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in an 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 + "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-contentType: application/json + x-accepts: application/json + /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-contentType: application/json + x-accepts: application/json + 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/json + 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-contentType: application/json + x-accepts: application/json + 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-contentType: application/json + x-accepts: application/json + /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 + /apis/storagemigration.k8s.io/v1alpha1/: get: description: get available resources operationId: getAPIResources @@ -92401,54 +94170,97 @@ components: - expression - name 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. example: - valueExpression: valueExpression - key: key + expression: expression 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. + 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. example: - fieldRef: fieldRef - warning: warning + expression: expression 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: description: MatchCondition represents a condition which must be fulfilled for @@ -92613,168 +94425,9 @@ components: x-kubernetes-list-type: atomic type: object x-kubernetes-map-type: atomic - v1beta1.NamedRuleWithOperations: - description: NamedRuleWithOperations is a tuple of Operations and Resources - with ResourceNames. - example: - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - properties: - apiGroups: - description: APIGroups is the API groups the resources belong to. '*' is - all groups. If '*' is present, the length of the slice must be one. Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - apiVersions: - description: APIVersions is the API versions the resources belong to. '*' - is all versions. If '*' is present, the length of the slice must be one. - Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - operations: - description: Operations is the operations the admission hook cares about - - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and - any future admission operations that are added. If '*' is present, the - length of the slice must be one. Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - resourceNames: - description: ResourceNames is an optional white list of names that the rule - applies to. An empty set means that everything is allowed. - items: - type: string - type: array - x-kubernetes-list-type: atomic - resources: - description: |- - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - items: - type: string - type: array - x-kubernetes-list-type: atomic - scope: - description: scope specifies the scope of this rule. Valid values are "Cluster", - "Namespaced", and "*" "Cluster" means that only cluster-scoped resources - will match this rule. Namespace API objects are cluster-scoped. "Namespaced" - means that only namespaced resources will match this rule. "*" means that - there are no scope restrictions. Subresources match the scope of their - parent resource. Default is "*". - type: string - type: object - x-kubernetes-map-type: atomic - v1beta1.ParamKind: - description: ParamKind is a tuple of Group Kind and Version. - example: - apiVersion: apiVersion - kind: kind - properties: - apiVersion: - description: APIVersion is the API group version the resources belong to. - In format of "group/version". Required. - type: string - kind: - description: Kind is the API kind the resources belong to. Required. - type: string - type: object - x-kubernetes-map-type: atomic - v1beta1.ParamRef: - description: ParamRef describes how to locate the params to be used as input - to expressions of rules applied by a policy binding. - example: - name: name - namespace: namespace - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - parameterNotFoundAction: parameterNotFoundAction - properties: - name: - description: |- - name is the name of the resource being referenced. - - One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. - - A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. - type: string - namespace: - description: |- - namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. - - A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - - - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - - - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. - type: string - parameterNotFoundAction: - description: |- - `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. - - Allowed values are `Allow` or `Deny` - - Required - type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - type: object - x-kubernetes-map-type: atomic - v1beta1.TypeChecking: - description: TypeChecking contains results of type checking the expressions - in the ValidatingAdmissionPolicy - example: - expressionWarnings: - - fieldRef: fieldRef - warning: warning - - fieldRef: fieldRef - warning: warning - properties: - expressionWarnings: - description: The type checking warnings for each expression. - items: - $ref: '#/components/schemas/v1beta1.ExpressionWarning' - type: array - x-kubernetes-list-type: atomic - type: object - v1beta1.ValidatingAdmissionPolicy: - description: ValidatingAdmissionPolicy describes the definition of an admission - validation policy that accepts or rejects an object without changing it. + v1beta1.MutatingAdmissionPolicy: + description: MutatingAdmissionPolicy describes the definition of an admission + mutation policy that mutates the object coming into admission chain. example: metadata: generation: 6 @@ -92825,19 +94478,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 @@ -92939,37 +94599,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 @@ -92984,23 +94614,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 @@ -93166,9 +94794,6 @@ components: operator: operator matchLabels: key: matchLabels - validationActions: - - validationActions - - validationActions properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -93183,16 +94808,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 @@ -93366,9 +94991,6 @@ components: operator: operator matchLabels: key: matchLabels - validationActions: - - validationActions - - validationActions - metadata: generation: 6 finalizers: @@ -93533,9 +95155,6 @@ components: operator: operator matchLabels: key: matchLabels - validationActions: - - validationActions - - validationActions properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -93545,7 +95164,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 @@ -93559,13 +95178,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 @@ -93682,48 +95301,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 @@ -93782,19 +95373,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 @@ -93896,37 +95494,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: @@ -93976,19 +95544,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 @@ -94090,37 +95665,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 @@ -94130,7 +95675,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 @@ -94144,27 +95689,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 @@ -94266,41 +95818,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. @@ -94320,160 +95852,199 @@ 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. @@ -95294,6 +96865,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -95316,17 +96888,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 @@ -95336,8 +96908,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -95346,12 +96918,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 @@ -95370,7 +96942,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -95386,14 +96958,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: @@ -95409,7 +96981,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -95518,20 +97090,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 @@ -95540,7 +97112,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -95553,26 +97125,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: @@ -95594,7 +97173,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -95603,7 +97182,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -95616,26 +97195,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: @@ -95655,7 +97241,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -95710,9 +97296,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -95721,7 +97307,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -95731,7 +97317,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -95741,7 +97327,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -95766,14 +97352,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: @@ -95813,7 +97399,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -95928,20 +97514,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 @@ -95950,7 +97536,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -95963,26 +97549,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: @@ -96004,7 +97597,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -96013,7 +97606,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -96026,26 +97619,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: @@ -96065,7 +97665,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -96120,9 +97720,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -96131,7 +97731,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -96141,7 +97741,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -96151,7 +97751,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -96176,14 +97776,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: @@ -96223,7 +97823,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -96249,11 +97849,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 @@ -96483,6 +98096,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -96501,6 +98119,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -96516,11 +98139,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 @@ -96750,6 +98386,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -96768,6 +98409,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -96779,7 +98425,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -96797,50 +98443,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -96896,43 +98516,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 @@ -96944,10 +98527,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -96963,9 +98542,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -97008,8 +98584,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -97042,7 +98616,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -97058,11 +98631,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -97092,8 +98660,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -97104,9 +98670,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -97162,43 +98805,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 @@ -97210,10 +98816,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -97229,9 +98831,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -97274,8 +98873,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -97308,7 +98905,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -97324,12 +98920,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -97359,8 +98949,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -97371,9 +98959,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -97429,43 +99095,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 @@ -97477,10 +99106,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -97496,9 +99121,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -97541,8 +99163,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -97575,7 +99195,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -97591,11 +99210,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -97625,8 +99239,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -97637,9 +99249,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -97695,43 +99384,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 @@ -97743,10 +99395,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -97762,9 +99410,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -97807,8 +99452,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -97841,7 +99484,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -97857,6 +99499,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -98497,6 +100235,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -98519,17 +100258,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 @@ -98539,8 +100278,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -98549,12 +100288,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 @@ -98573,7 +100312,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -98589,14 +100328,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: @@ -98612,7 +100351,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -98721,20 +100460,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 @@ -98743,7 +100482,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -98756,26 +100495,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: @@ -98797,7 +100543,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -98806,7 +100552,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -98819,26 +100565,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: @@ -98858,7 +100611,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -98913,9 +100666,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -98924,7 +100677,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -98934,7 +100687,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -98944,7 +100697,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -98969,14 +100722,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: @@ -99016,7 +100769,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -99131,20 +100884,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 @@ -99153,7 +100906,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -99166,26 +100919,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: @@ -99207,7 +100967,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -99216,7 +100976,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -99229,26 +100989,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: @@ -99268,7 +101035,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -99323,9 +101090,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -99334,7 +101101,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -99344,7 +101111,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -99354,7 +101121,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -99379,14 +101146,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: @@ -99426,7 +101193,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -99452,11 +101219,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 @@ -99686,6 +101466,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -99704,6 +101489,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -99719,11 +101509,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 @@ -99953,6 +101756,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -99971,6 +101779,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -99982,7 +101795,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -100000,50 +101813,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -100099,43 +101886,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 @@ -100147,10 +101897,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -100166,9 +101912,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -100211,8 +101954,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -100245,7 +101986,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -100261,11 +102001,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -100295,8 +102030,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -100307,9 +102040,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -100365,43 +102175,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 @@ -100413,10 +102186,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -100432,9 +102201,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -100477,8 +102243,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -100511,7 +102275,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -100527,12 +102290,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -100562,8 +102319,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -100574,9 +102329,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -100632,43 +102465,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 @@ -100680,10 +102476,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -100699,9 +102491,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -100744,8 +102533,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -100778,7 +102565,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -100794,11 +102580,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -100828,8 +102609,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -100840,9 +102619,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -100898,43 +102754,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 @@ -100946,10 +102765,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -100965,9 +102780,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -101010,8 +102822,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -101044,7 +102854,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -101060,6 +102869,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -101635,6 +103540,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -101657,17 +103563,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 @@ -101677,8 +103583,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -101687,12 +103593,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 @@ -101711,7 +103617,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -101727,14 +103633,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: @@ -101750,7 +103656,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -101859,20 +103765,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 @@ -101881,7 +103787,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -101894,26 +103800,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: @@ -101935,7 +103848,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -101944,7 +103857,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -101957,26 +103870,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: @@ -101996,7 +103916,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -102051,9 +103971,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -102062,7 +103982,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -102072,7 +103992,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -102082,7 +104002,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -102107,14 +104027,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: @@ -102154,7 +104074,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -102269,20 +104189,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 @@ -102291,7 +104211,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -102304,26 +104224,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: @@ -102345,7 +104272,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -102354,7 +104281,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -102367,26 +104294,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: @@ -102406,7 +104340,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -102461,9 +104395,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -102472,7 +104406,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -102482,7 +104416,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -102492,7 +104426,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -102517,14 +104451,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: @@ -102564,7 +104498,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -102590,11 +104524,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 @@ -102824,6 +104771,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -102842,6 +104794,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -102857,11 +104814,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 @@ -103091,6 +105061,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -103109,6 +105084,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -103120,7 +105100,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -103138,50 +105118,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -103237,43 +105191,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 @@ -103285,10 +105202,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -103304,9 +105217,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -103349,8 +105259,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -103383,7 +105291,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -103399,11 +105306,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -103433,8 +105335,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -103445,9 +105345,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -103503,43 +105480,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 @@ -103551,10 +105491,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -103570,9 +105506,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -103615,8 +105548,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -103649,7 +105580,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -103665,12 +105595,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -103700,8 +105624,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -103712,9 +105634,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -103770,43 +105770,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 @@ -103818,10 +105781,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -103837,9 +105796,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -103882,8 +105838,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -103916,7 +105870,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -103932,11 +105885,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -103966,8 +105914,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -103978,9 +105924,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -104036,43 +106059,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 @@ -104084,10 +106070,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -104103,9 +106085,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -104148,8 +106127,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -104182,7 +106159,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -104198,6 +106174,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -104754,6 +106826,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -104776,17 +106849,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 @@ -104796,8 +106869,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -104806,12 +106879,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 @@ -104830,7 +106903,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -104846,14 +106919,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: @@ -104869,7 +106942,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -104978,20 +107051,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 @@ -105000,7 +107073,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105013,26 +107086,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: @@ -105054,7 +107134,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105063,7 +107143,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105076,26 +107156,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: @@ -105115,7 +107202,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -105170,9 +107257,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105181,7 +107268,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105191,7 +107278,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -105201,7 +107288,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -105226,14 +107313,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: @@ -105273,7 +107360,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -105388,20 +107475,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 @@ -105410,7 +107497,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105423,26 +107510,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: @@ -105464,7 +107558,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105473,7 +107567,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105486,26 +107580,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: @@ -105525,7 +107626,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -105580,9 +107681,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105591,7 +107692,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -105601,7 +107702,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -105611,7 +107712,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -105636,14 +107737,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: @@ -105683,7 +107784,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -105709,11 +107810,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 @@ -105943,6 +108057,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -105961,6 +108080,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -105976,11 +108100,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 @@ -106210,6 +108347,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -106228,6 +108370,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -106239,7 +108386,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -106257,50 +108404,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -106356,43 +108477,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 @@ -106404,10 +108488,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -106423,9 +108503,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -106468,8 +108545,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -106502,7 +108577,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -106518,11 +108592,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -106552,8 +108621,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -106564,9 +108631,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -106622,43 +108766,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 @@ -106670,10 +108777,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -106689,9 +108792,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -106734,8 +108834,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -106768,7 +108866,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -106784,12 +108881,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -106819,8 +108910,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -106831,9 +108920,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -106889,43 +109056,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 @@ -106937,10 +109067,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -106956,9 +109082,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -107001,8 +109124,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -107035,7 +109156,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -107051,11 +109171,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -107085,8 +109200,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -107097,9 +109210,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -107155,43 +109345,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 @@ -107203,10 +109356,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -107222,9 +109371,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -107267,8 +109413,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -107301,7 +109445,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -107317,6 +109460,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -108002,6 +110241,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -108024,17 +110264,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 @@ -108044,8 +110284,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -108054,12 +110294,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 @@ -108078,7 +110318,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -108094,14 +110334,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: @@ -108117,7 +110357,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -108226,20 +110466,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 @@ -108248,7 +110488,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -108261,26 +110501,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: @@ -108302,7 +110549,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -108311,7 +110558,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -108324,26 +110571,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: @@ -108363,7 +110617,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -108418,9 +110672,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -108429,7 +110683,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -108439,7 +110693,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -108449,7 +110703,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -108474,14 +110728,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: @@ -108521,7 +110775,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -108636,20 +110890,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 @@ -108658,7 +110912,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -108671,26 +110925,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: @@ -108712,7 +110973,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -108721,7 +110982,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -108734,26 +110995,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: @@ -108773,7 +111041,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -108828,9 +111096,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -108839,7 +111107,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -108849,7 +111117,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -108859,7 +111127,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -108884,14 +111152,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: @@ -108931,7 +111199,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -108957,11 +111225,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 @@ -109191,6 +111472,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -109209,6 +111495,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -109224,11 +111515,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 @@ -109458,6 +111762,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -109476,6 +111785,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -109487,7 +111801,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -109505,50 +111819,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -109604,43 +111892,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 @@ -109652,10 +111903,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -109671,9 +111918,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -109716,8 +111960,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -109750,7 +111992,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -109766,11 +112007,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -109800,8 +112036,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -109812,9 +112046,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -109870,43 +112181,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 @@ -109918,10 +112192,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -109937,9 +112207,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -109982,8 +112249,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -110016,7 +112281,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -110032,12 +112296,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -110067,8 +112325,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -110079,9 +112335,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -110137,43 +112471,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 @@ -110185,10 +112482,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -110204,9 +112497,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -110249,8 +112539,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -110283,7 +112571,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -110299,11 +112586,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -110333,8 +112615,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -110345,9 +112625,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -110403,43 +112760,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 @@ -110451,10 +112771,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -110470,9 +112786,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -110515,8 +112828,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -110549,7 +112860,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -110565,6 +112875,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -111214,6 +113620,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -111236,17 +113643,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 @@ -111256,8 +113663,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -111266,12 +113673,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 @@ -111290,7 +113697,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -111306,14 +113713,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: @@ -111329,7 +113736,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -111438,20 +113845,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 @@ -111460,7 +113867,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -111473,26 +113880,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: @@ -111514,7 +113928,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -111523,7 +113937,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -111536,26 +113950,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: @@ -111575,7 +113996,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -111630,9 +114051,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -111641,7 +114062,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -111651,7 +114072,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -111661,7 +114082,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -111686,14 +114107,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: @@ -111733,7 +114154,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -111848,20 +114269,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 @@ -111870,7 +114291,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -111883,26 +114304,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: @@ -111924,7 +114352,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -111933,7 +114361,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -111946,26 +114374,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: @@ -111985,7 +114420,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -112040,9 +114475,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112051,7 +114486,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112061,7 +114496,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -112071,7 +114506,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -112096,14 +114531,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: @@ -112143,7 +114578,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -112169,11 +114604,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 @@ -112403,6 +114851,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -112421,6 +114874,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -112436,11 +114894,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 @@ -112670,6 +115141,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -112688,6 +115164,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -112699,7 +115180,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -112717,50 +115198,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -112816,43 +115271,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 @@ -112864,10 +115282,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -112883,9 +115297,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -112928,8 +115339,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -112962,7 +115371,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -112978,11 +115386,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -113012,8 +115415,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -113024,9 +115425,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -113082,43 +115560,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 @@ -113130,10 +115571,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -113149,9 +115586,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -113194,8 +115628,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -113228,7 +115660,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -113244,12 +115675,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -113279,8 +115704,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -113291,9 +115714,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -113349,43 +115850,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 @@ -113397,10 +115861,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -113416,9 +115876,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -113461,8 +115918,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -113495,7 +115950,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -113511,11 +115965,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -113545,8 +115994,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -113557,9 +116004,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -113615,43 +116139,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 @@ -113663,10 +116150,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -113682,9 +116165,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -113727,8 +116207,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -113761,7 +116239,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -113777,6 +116254,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -114356,6 +116929,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -114378,17 +116952,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 @@ -114398,8 +116972,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -114408,12 +116982,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 @@ -114432,7 +117006,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -114448,14 +117022,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: @@ -114471,7 +117045,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -114580,20 +117154,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 @@ -114602,7 +117176,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -114615,26 +117189,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: @@ -114656,7 +117237,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -114665,7 +117246,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -114678,26 +117259,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: @@ -114717,7 +117305,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -114772,9 +117360,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -114783,7 +117371,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -114793,7 +117381,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -114803,7 +117391,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -114828,14 +117416,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: @@ -114875,7 +117463,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -114990,20 +117578,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 @@ -115012,7 +117600,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115025,26 +117613,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: @@ -115066,7 +117661,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115075,7 +117670,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115088,26 +117683,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: @@ -115127,7 +117729,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -115182,9 +117784,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115193,7 +117795,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115203,7 +117805,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -115213,7 +117815,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -115238,14 +117840,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: @@ -115285,7 +117887,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -115311,11 +117913,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 @@ -115545,6 +118160,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -115563,6 +118183,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -115578,11 +118203,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 @@ -115812,6 +118450,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -115830,6 +118473,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -115841,7 +118489,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -115859,50 +118507,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -115958,43 +118580,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 @@ -116006,10 +118591,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -116025,9 +118606,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -116070,8 +118648,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -116104,7 +118680,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -116120,11 +118695,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -116154,8 +118724,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -116166,9 +118734,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -116224,43 +118869,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 @@ -116272,10 +118880,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -116291,9 +118895,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -116336,8 +118937,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -116370,7 +118969,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -116386,12 +118984,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -116421,8 +119013,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -116433,9 +119023,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -116491,43 +119159,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 @@ -116539,10 +119170,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -116558,9 +119185,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -116603,8 +119227,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -116637,7 +119259,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -116653,11 +119274,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -116687,8 +119303,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -116699,9 +119313,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -116757,43 +119448,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 @@ -116805,10 +119459,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -116824,9 +119474,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -116869,8 +119516,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -116903,7 +119548,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -116919,6 +119563,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -117480,6 +120220,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -117502,17 +120243,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 @@ -117522,8 +120263,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -117532,12 +120273,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 @@ -117556,7 +120297,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -117572,14 +120313,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: @@ -117595,7 +120336,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -117704,20 +120445,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 @@ -117726,7 +120467,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -117739,26 +120480,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: @@ -117780,7 +120528,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -117789,7 +120537,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -117802,26 +120550,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: @@ -117841,7 +120596,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -117896,9 +120651,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -117907,7 +120662,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -117917,7 +120672,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -117927,7 +120682,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -117952,14 +120707,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: @@ -117999,7 +120754,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -118114,20 +120869,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 @@ -118136,7 +120891,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118149,26 +120904,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: @@ -118190,7 +120952,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118199,7 +120961,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118212,26 +120974,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: @@ -118251,7 +121020,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -118306,9 +121075,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118317,7 +121086,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118327,7 +121096,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -118337,7 +121106,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -118362,14 +121131,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: @@ -118409,7 +121178,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -118435,11 +121204,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 @@ -118669,6 +121451,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -118687,6 +121474,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -118702,11 +121494,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 @@ -118936,6 +121741,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -118954,6 +121764,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -118965,7 +121780,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -118983,50 +121798,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -119082,43 +121871,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 @@ -119130,10 +121882,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -119149,9 +121897,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -119194,8 +121939,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -119228,7 +121971,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -119244,11 +121986,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -119278,8 +122015,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -119290,9 +122025,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -119348,43 +122160,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 @@ -119396,10 +122171,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -119415,9 +122186,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -119460,8 +122228,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -119494,7 +122260,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -119510,12 +122275,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -119545,8 +122304,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -119557,9 +122314,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -119615,43 +122450,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 @@ -119663,10 +122461,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -119682,9 +122476,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -119727,8 +122518,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -119761,7 +122550,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -119777,11 +122565,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -119811,8 +122594,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -119823,9 +122604,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -119881,43 +122739,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 @@ -119929,10 +122750,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -119948,9 +122765,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -119993,8 +122807,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -120027,7 +122839,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -120043,6 +122854,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -120741,6 +123648,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -120763,17 +123671,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 @@ -120783,8 +123691,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -120793,12 +123701,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 @@ -120817,7 +123725,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -120833,14 +123741,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: @@ -120856,7 +123764,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -120965,20 +123873,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 @@ -120987,7 +123895,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121000,26 +123908,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: @@ -121041,7 +123956,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121050,7 +123965,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121063,26 +123978,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: @@ -121102,7 +124024,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -121157,9 +124079,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121168,7 +124090,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121178,7 +124100,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -121188,7 +124110,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -121213,14 +124135,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: @@ -121260,7 +124182,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -121375,20 +124297,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 @@ -121397,7 +124319,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121410,26 +124332,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: @@ -121451,7 +124380,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121460,7 +124389,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121473,26 +124402,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: @@ -121512,7 +124448,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -121567,9 +124503,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121578,7 +124514,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -121588,7 +124524,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -121598,7 +124534,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -121623,14 +124559,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: @@ -121670,7 +124606,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -121696,11 +124632,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 @@ -121930,6 +124879,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -121948,6 +124902,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -121963,11 +124922,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 @@ -122197,6 +125169,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -122215,6 +125192,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -122226,7 +125208,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -122244,50 +125226,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -122343,43 +125299,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 @@ -122391,10 +125310,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -122410,9 +125325,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -122455,8 +125367,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -122489,7 +125399,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -122505,11 +125414,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -122539,8 +125443,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -122551,9 +125453,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -122609,43 +125588,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 @@ -122657,10 +125599,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -122676,9 +125614,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -122721,8 +125656,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -122755,7 +125688,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -122771,12 +125703,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -122806,8 +125732,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -122818,9 +125742,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -122876,43 +125878,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 @@ -122924,10 +125889,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -122943,9 +125904,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -122988,8 +125946,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -123022,7 +125978,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -123038,11 +125993,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -123072,8 +126022,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -123084,9 +126032,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -123142,43 +126167,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 @@ -123190,10 +126178,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -123209,9 +126193,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -123254,8 +126235,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -123288,7 +126267,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -123304,6 +126282,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -123937,6 +127011,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -123959,17 +127034,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 @@ -123979,8 +127054,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -123989,12 +127064,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 @@ -124013,7 +127088,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -124029,14 +127104,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: @@ -124052,7 +127127,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -124161,20 +127236,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 @@ -124183,7 +127258,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -124196,26 +127271,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: @@ -124237,7 +127319,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -124246,7 +127328,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -124259,26 +127341,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: @@ -124298,7 +127387,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -124353,9 +127442,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -124364,7 +127453,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -124374,7 +127463,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -124384,7 +127473,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -124409,14 +127498,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: @@ -124456,7 +127545,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -124571,20 +127660,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 @@ -124593,7 +127682,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -124606,26 +127695,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: @@ -124647,7 +127743,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -124656,7 +127752,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -124669,26 +127765,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: @@ -124708,7 +127811,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -124763,9 +127866,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -124774,7 +127877,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -124784,7 +127887,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -124794,7 +127897,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -124819,14 +127922,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: @@ -124866,7 +127969,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -124892,11 +127995,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 @@ -125126,6 +128242,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -125144,6 +128265,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -125159,11 +128285,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 @@ -125393,6 +128532,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -125411,6 +128555,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -125422,7 +128571,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -125440,50 +128589,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -125539,43 +128662,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 @@ -125587,10 +128673,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -125606,9 +128688,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -125651,8 +128730,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -125685,7 +128762,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -125701,11 +128777,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -125735,8 +128806,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -125747,9 +128816,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -125805,43 +128951,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 @@ -125853,10 +128962,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -125872,9 +128977,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -125917,8 +129019,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -125951,7 +129051,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -125967,12 +129066,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -126002,8 +129095,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -126014,9 +129105,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -126072,43 +129241,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 @@ -126120,10 +129252,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -126139,9 +129267,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -126184,8 +129309,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -126218,7 +129341,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -126234,11 +129356,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -126268,8 +129385,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -126280,9 +129395,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -126338,43 +129530,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 @@ -126386,10 +129541,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -126405,9 +129556,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -126450,8 +129598,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -126484,7 +129630,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -126500,6 +129645,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -127067,6 +130308,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -127089,17 +130331,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 @@ -127109,8 +130351,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -127119,12 +130361,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 @@ -127143,7 +130385,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -127159,14 +130401,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: @@ -127182,7 +130424,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -127291,20 +130533,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 @@ -127313,7 +130555,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -127326,26 +130568,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: @@ -127367,7 +130616,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -127376,7 +130625,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -127389,26 +130638,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: @@ -127428,7 +130684,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -127483,9 +130739,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -127494,7 +130750,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -127504,7 +130760,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -127514,7 +130770,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -127539,14 +130795,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: @@ -127586,7 +130842,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -127701,20 +130957,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 @@ -127723,7 +130979,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -127736,26 +130992,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: @@ -127777,7 +131040,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -127786,7 +131049,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -127799,26 +131062,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: @@ -127838,7 +131108,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -127893,9 +131163,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -127904,7 +131174,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -127914,7 +131184,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -127924,7 +131194,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -127949,14 +131219,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: @@ -127996,7 +131266,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -128022,11 +131292,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 @@ -128256,6 +131539,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -128274,6 +131562,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -128289,11 +131582,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 @@ -128523,6 +131829,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -128541,6 +131852,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -128552,7 +131868,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -128570,50 +131886,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -128669,43 +131959,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 @@ -128717,10 +131970,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -128736,9 +131985,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -128781,8 +132027,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -128815,7 +132059,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -128831,11 +132074,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -128865,8 +132103,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -128877,9 +132113,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -128935,43 +132248,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 @@ -128983,10 +132259,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -129002,9 +132274,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -129047,8 +132316,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -129081,7 +132348,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -129097,12 +132363,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -129132,8 +132392,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -129144,9 +132402,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -129202,43 +132538,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 @@ -129250,10 +132549,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -129269,9 +132564,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -129314,8 +132606,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -129348,7 +132638,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -129364,11 +132653,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -129398,8 +132682,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -129410,9 +132692,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -129468,43 +132827,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 @@ -129516,10 +132838,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -129535,9 +132853,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -129580,8 +132895,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -129614,7 +132927,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -129630,6 +132942,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -130178,6 +133586,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -130200,17 +133609,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 @@ -130220,8 +133629,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -130230,12 +133639,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 @@ -130254,7 +133663,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -130270,14 +133679,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: @@ -130293,7 +133702,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -130402,20 +133811,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 @@ -130424,7 +133833,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -130437,26 +133846,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: @@ -130478,7 +133894,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -130487,7 +133903,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -130500,26 +133916,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: @@ -130539,7 +133962,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -130594,9 +134017,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -130605,7 +134028,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -130615,7 +134038,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -130625,7 +134048,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -130650,14 +134073,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: @@ -130697,7 +134120,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -130812,20 +134235,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 @@ -130834,7 +134257,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -130847,26 +134270,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: @@ -130888,7 +134318,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -130897,7 +134327,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -130910,26 +134340,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: @@ -130949,7 +134386,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -131004,9 +134441,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -131015,7 +134452,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -131025,7 +134462,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -131035,7 +134472,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -131060,14 +134497,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: @@ -131107,7 +134544,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -131133,11 +134570,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 @@ -131367,6 +134817,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -131385,6 +134840,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -131400,11 +134860,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 @@ -131634,6 +135107,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -131652,6 +135130,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -131663,7 +135146,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -131681,50 +135164,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -131780,43 +135237,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 @@ -131828,10 +135248,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -131847,9 +135263,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -131892,8 +135305,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -131926,7 +135337,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -131942,11 +135352,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -131976,8 +135381,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -131988,9 +135391,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -132046,43 +135526,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 @@ -132094,10 +135537,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -132113,9 +135552,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -132158,8 +135594,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -132192,7 +135626,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -132208,12 +135641,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -132243,8 +135670,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -132255,9 +135680,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -132313,43 +135816,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 @@ -132361,10 +135827,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -132380,9 +135842,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -132425,8 +135884,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -132459,7 +135916,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -132475,11 +135931,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -132509,8 +135960,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -132521,9 +135970,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -132579,43 +136105,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 @@ -132627,10 +136116,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -132646,9 +136131,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -132691,8 +136173,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -132725,7 +136205,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -132741,6 +136220,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -133451,6 +137026,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -133473,17 +137049,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 @@ -133493,8 +137069,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -133503,12 +137079,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 @@ -133527,7 +137103,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -133543,14 +137119,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: @@ -133566,7 +137142,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -133675,20 +137251,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 @@ -133697,7 +137273,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -133710,26 +137286,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: @@ -133751,7 +137334,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -133760,7 +137343,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -133773,26 +137356,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: @@ -133812,7 +137402,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -133867,9 +137457,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -133878,7 +137468,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -133888,7 +137478,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -133898,7 +137488,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -133923,14 +137513,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: @@ -133970,7 +137560,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -134085,20 +137675,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 @@ -134107,7 +137697,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -134120,26 +137710,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: @@ -134161,7 +137758,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -134170,7 +137767,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -134183,26 +137780,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: @@ -134222,7 +137826,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -134277,9 +137881,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -134288,7 +137892,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -134298,7 +137902,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -134308,7 +137912,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -134333,14 +137937,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: @@ -134380,7 +137984,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -134406,11 +138010,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 @@ -134640,6 +138257,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -134658,6 +138280,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -134673,11 +138300,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 @@ -134907,6 +138547,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -134925,6 +138570,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -134936,7 +138586,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -134954,50 +138604,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -135053,43 +138677,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 @@ -135101,10 +138688,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -135120,9 +138703,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -135165,8 +138745,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -135199,7 +138777,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -135215,11 +138792,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -135249,8 +138821,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -135261,9 +138831,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -135319,43 +138966,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 @@ -135367,10 +138977,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -135386,9 +138992,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -135431,8 +139034,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -135465,7 +139066,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -135481,12 +139081,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -135516,8 +139110,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -135528,9 +139120,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -135586,43 +139256,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 @@ -135634,10 +139267,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -135653,9 +139282,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -135698,8 +139324,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -135732,7 +139356,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -135748,11 +139371,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -135782,8 +139400,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -135794,9 +139410,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -135852,43 +139545,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 @@ -135900,10 +139556,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -135919,9 +139571,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -135964,8 +139613,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -135998,7 +139645,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -136014,6 +139660,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -136879,6 +140621,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -136901,17 +140644,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 @@ -136921,8 +140664,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -136931,12 +140674,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 @@ -136955,7 +140698,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -136971,14 +140714,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: @@ -136994,7 +140737,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -137103,20 +140846,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 @@ -137125,7 +140868,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137138,26 +140881,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: @@ -137179,7 +140929,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137188,7 +140938,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137201,26 +140951,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: @@ -137240,7 +140997,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -137295,9 +141052,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137306,7 +141063,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137316,7 +141073,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -137326,7 +141083,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -137351,14 +141108,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: @@ -137398,7 +141155,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -137513,20 +141270,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 @@ -137535,7 +141292,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137548,26 +141305,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: @@ -137589,7 +141353,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137598,7 +141362,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137611,26 +141375,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: @@ -137650,7 +141421,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -137705,9 +141476,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137716,7 +141487,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -137726,7 +141497,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -137736,7 +141507,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -137761,14 +141532,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: @@ -137808,7 +141579,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -137834,11 +141605,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 @@ -138068,6 +141852,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -138086,6 +141875,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -138101,11 +141895,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 @@ -138335,6 +142142,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -138353,6 +142165,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -138364,7 +142181,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -138382,50 +142199,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -138481,43 +142272,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 @@ -138529,10 +142283,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -138548,9 +142298,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -138593,8 +142340,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -138627,7 +142372,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -138643,11 +142387,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -138677,8 +142416,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -138689,9 +142426,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -138747,43 +142561,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 @@ -138795,10 +142572,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -138814,9 +142587,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -138859,8 +142629,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -138893,7 +142661,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -138909,12 +142676,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -138944,8 +142705,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -138956,9 +142715,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -139014,43 +142851,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 @@ -139062,10 +142862,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -139081,9 +142877,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -139126,8 +142919,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -139160,7 +142951,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -139176,11 +142966,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -139210,8 +142995,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -139222,9 +143005,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -139280,43 +143140,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 @@ -139328,10 +143151,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -139347,9 +143166,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -139392,8 +143208,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -139426,7 +143240,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -139442,6 +143255,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -140242,6 +144151,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -140264,17 +144174,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 @@ -140284,8 +144194,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -140294,12 +144204,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 @@ -140318,7 +144228,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -140334,14 +144244,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: @@ -140357,7 +144267,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -140466,20 +144376,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 @@ -140488,7 +144398,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140501,26 +144411,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: @@ -140542,7 +144459,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140551,7 +144468,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140564,26 +144481,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: @@ -140603,7 +144527,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -140658,9 +144582,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140669,7 +144593,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140679,7 +144603,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -140689,7 +144613,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -140714,14 +144638,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: @@ -140761,7 +144685,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -140876,20 +144800,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 @@ -140898,7 +144822,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140911,26 +144835,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: @@ -140952,7 +144883,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140961,7 +144892,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140974,26 +144905,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: @@ -141013,7 +144951,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -141068,9 +145006,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141079,7 +145017,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141089,7 +145027,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -141099,7 +145037,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -141124,14 +145062,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: @@ -141171,7 +145109,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -141197,11 +145135,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 @@ -141431,6 +145382,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -141449,6 +145405,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -141464,11 +145425,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 @@ -141698,6 +145672,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -141716,6 +145695,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -141727,7 +145711,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -141745,50 +145729,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -141844,43 +145802,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 @@ -141892,10 +145813,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -141911,9 +145828,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -141956,8 +145870,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -141990,7 +145902,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -142006,11 +145917,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -142040,8 +145946,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -142052,9 +145956,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -142110,43 +146091,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 @@ -142158,10 +146102,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -142177,9 +146117,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -142222,8 +146159,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -142256,7 +146191,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -142272,12 +146206,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -142307,8 +146235,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -142319,9 +146245,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -142377,43 +146381,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 @@ -142425,10 +146392,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -142444,9 +146407,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -142489,8 +146449,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -142523,7 +146481,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -142539,11 +146496,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -142573,8 +146525,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -142585,9 +146535,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -142643,43 +146670,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 @@ -142691,10 +146681,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -142710,9 +146696,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -142755,8 +146738,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -142789,7 +146770,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -142805,6 +146785,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -143622,6 +147698,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -143644,17 +147721,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 @@ -143664,8 +147741,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -143674,12 +147751,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 @@ -143698,7 +147775,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -143714,14 +147791,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: @@ -143737,7 +147814,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -143846,20 +147923,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 @@ -143868,7 +147945,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -143881,26 +147958,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: @@ -143922,7 +148006,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -143931,7 +148015,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -143944,26 +148028,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: @@ -143983,7 +148074,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -144038,9 +148129,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144049,7 +148140,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144059,7 +148150,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -144069,7 +148160,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -144094,14 +148185,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: @@ -144141,7 +148232,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -144256,20 +148347,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 @@ -144278,7 +148369,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144291,26 +148382,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: @@ -144332,7 +148430,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144341,7 +148439,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144354,26 +148452,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: @@ -144393,7 +148498,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -144448,9 +148553,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144459,7 +148564,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144469,7 +148574,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -144479,7 +148584,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -144504,14 +148609,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: @@ -144551,7 +148656,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -144577,11 +148682,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 @@ -144811,6 +148929,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -144829,6 +148952,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -144844,11 +148972,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 @@ -145078,6 +149219,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -145096,6 +149242,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -145107,7 +149258,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -145125,50 +149276,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -145224,43 +149349,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 @@ -145272,10 +149360,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -145291,9 +149375,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -145336,8 +149417,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -145370,7 +149449,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -145386,11 +149464,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -145420,8 +149493,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -145432,9 +149503,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -145490,43 +149638,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 @@ -145538,10 +149649,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -145557,9 +149664,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -145602,8 +149706,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -145636,7 +149738,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -145652,12 +149753,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -145687,8 +149782,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -145699,9 +149792,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -145757,43 +149928,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 @@ -145805,10 +149939,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -145824,9 +149954,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -145869,8 +149996,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -145903,7 +150028,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -145919,11 +150043,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -145953,8 +150072,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -145965,9 +150082,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -146023,43 +150217,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 @@ -146071,10 +150228,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -146090,9 +150243,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -146135,8 +150285,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -146169,7 +150317,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -146185,6 +150332,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -151906,6 +156149,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -151928,17 +156172,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 @@ -151948,8 +156192,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -151958,12 +156202,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 @@ -151982,7 +156226,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -151998,14 +156242,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: @@ -152021,7 +156265,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -152130,20 +156374,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 @@ -152152,7 +156396,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -152165,26 +156409,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: @@ -152206,7 +156457,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -152215,7 +156466,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -152228,26 +156479,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: @@ -152267,7 +156525,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -152322,9 +156580,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -152333,7 +156591,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -152343,7 +156601,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -152353,7 +156611,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -152378,14 +156636,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: @@ -152425,7 +156683,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -152540,20 +156798,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 @@ -152562,7 +156820,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -152575,26 +156833,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: @@ -152616,7 +156881,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -152625,7 +156890,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -152638,26 +156903,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: @@ -152677,7 +156949,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -152732,9 +157004,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -152743,7 +157015,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -152753,7 +157025,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -152763,7 +157035,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -152788,14 +157060,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: @@ -152835,7 +157107,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -152861,11 +157133,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 @@ -153095,6 +157380,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -153113,6 +157403,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -153128,11 +157423,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 @@ -153362,6 +157670,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -153380,6 +157693,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -153391,7 +157709,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -153409,50 +157727,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -153508,43 +157800,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 @@ -153556,10 +157811,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -153575,9 +157826,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -153620,8 +157868,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -153654,7 +157900,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -153670,11 +157915,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -153704,8 +157944,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -153716,9 +157954,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -153774,43 +158089,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 @@ -153822,10 +158100,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -153841,9 +158115,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -153886,8 +158157,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -153920,7 +158189,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -153936,12 +158204,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -153971,8 +158233,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -153983,9 +158243,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -154041,43 +158379,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 @@ -154089,10 +158390,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -154108,9 +158405,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -154153,8 +158447,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -154187,7 +158479,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -154203,11 +158494,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -154237,8 +158523,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -154249,9 +158533,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -154307,43 +158668,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 @@ -154355,10 +158679,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -154374,9 +158694,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -154419,8 +158736,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -154453,7 +158768,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -154469,6 +158783,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -155168,6 +159578,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -155190,17 +159601,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 @@ -155210,8 +159621,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -155220,12 +159631,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 @@ -155244,7 +159655,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -155260,14 +159671,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: @@ -155283,7 +159694,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -155392,20 +159803,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 @@ -155414,7 +159825,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -155427,26 +159838,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: @@ -155468,7 +159886,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -155477,7 +159895,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -155490,26 +159908,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: @@ -155529,7 +159954,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -155584,9 +160009,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -155595,7 +160020,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -155605,7 +160030,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -155615,7 +160040,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -155640,14 +160065,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: @@ -155687,7 +160112,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -155802,20 +160227,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 @@ -155824,7 +160249,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -155837,26 +160262,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: @@ -155878,7 +160310,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -155887,7 +160319,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -155900,26 +160332,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: @@ -155939,7 +160378,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -155994,9 +160433,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156005,7 +160444,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156015,7 +160454,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -156025,7 +160464,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -156050,14 +160489,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: @@ -156097,7 +160536,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -156123,11 +160562,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 @@ -156357,6 +160809,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -156375,6 +160832,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -156390,11 +160852,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 @@ -156624,6 +161099,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -156642,6 +161122,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -156653,7 +161138,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -156671,50 +161156,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -156770,43 +161229,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 @@ -156818,10 +161240,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -156837,9 +161255,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -156882,8 +161297,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -156916,7 +161329,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -156932,11 +161344,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -156966,8 +161373,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -156978,9 +161383,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -157036,43 +161518,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 @@ -157084,10 +161529,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -157103,9 +161544,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -157148,8 +161586,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -157182,7 +161618,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -157198,12 +161633,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -157233,8 +161662,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -157245,9 +161672,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -157303,43 +161808,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 @@ -157351,10 +161819,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -157370,9 +161834,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -157415,8 +161876,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -157449,7 +161908,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -157465,11 +161923,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -157499,8 +161952,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -157511,9 +161962,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -157569,43 +162097,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 @@ -157617,10 +162108,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -157636,9 +162123,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -157681,8 +162165,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -157715,7 +162197,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -157731,6 +162212,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -158395,6 +162972,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -158417,17 +162995,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 @@ -158437,8 +163015,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -158447,12 +163025,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 @@ -158471,7 +163049,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -158487,14 +163065,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: @@ -158510,7 +163088,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -158619,20 +163197,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 @@ -158641,7 +163219,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -158654,26 +163232,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: @@ -158695,7 +163280,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -158704,7 +163289,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -158717,26 +163302,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: @@ -158756,7 +163348,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -158811,9 +163403,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -158822,7 +163414,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -158832,7 +163424,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -158842,7 +163434,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -158867,14 +163459,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: @@ -158914,7 +163506,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -159029,20 +163621,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 @@ -159051,7 +163643,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159064,26 +163656,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: @@ -159105,7 +163704,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159114,7 +163713,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159127,26 +163726,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: @@ -159166,7 +163772,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -159221,9 +163827,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159232,7 +163838,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159242,7 +163848,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -159252,7 +163858,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -159277,14 +163883,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: @@ -159324,7 +163930,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -159350,11 +163956,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 @@ -159584,6 +164203,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -159602,6 +164226,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -159617,11 +164246,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 @@ -159851,6 +164493,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -159869,6 +164516,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -159880,7 +164532,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -159898,50 +164550,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -159997,43 +164623,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 @@ -160045,10 +164634,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -160064,9 +164649,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -160109,8 +164691,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -160143,7 +164723,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -160159,11 +164738,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -160193,8 +164767,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -160205,9 +164777,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -160263,43 +164912,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 @@ -160311,10 +164923,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -160330,9 +164938,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -160375,8 +164980,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -160409,7 +165012,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -160425,12 +165027,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -160460,8 +165056,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -160472,9 +165066,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -160530,43 +165202,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 @@ -160578,10 +165213,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -160597,9 +165228,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -160642,8 +165270,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -160676,7 +165302,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -160692,11 +165317,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -160726,8 +165346,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -160738,9 +165356,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -160796,43 +165491,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 @@ -160844,10 +165502,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -160863,9 +165517,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -160908,8 +165559,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -160942,7 +165591,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -160958,6 +165606,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -161604,6 +166348,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -161626,17 +166371,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 @@ -161646,8 +166391,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -161656,12 +166401,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 @@ -161680,7 +166425,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -161696,14 +166441,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: @@ -161719,7 +166464,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -161828,20 +166573,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 @@ -161850,7 +166595,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -161863,26 +166608,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: @@ -161904,7 +166656,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -161913,7 +166665,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -161926,26 +166678,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: @@ -161965,7 +166724,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -162020,9 +166779,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -162031,7 +166790,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -162041,7 +166800,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -162051,7 +166810,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -162076,14 +166835,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: @@ -162123,7 +166882,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -162238,20 +166997,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 @@ -162260,7 +167019,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -162273,26 +167032,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: @@ -162314,7 +167080,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -162323,7 +167089,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -162336,26 +167102,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: @@ -162375,7 +167148,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -162430,9 +167203,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -162441,7 +167214,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -162451,7 +167224,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -162461,7 +167234,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -162486,14 +167259,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: @@ -162533,7 +167306,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -162559,11 +167332,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 @@ -162793,6 +167579,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -162811,6 +167602,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -162826,11 +167622,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 @@ -163060,6 +167869,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -163078,6 +167892,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -163089,7 +167908,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -163107,50 +167926,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -163206,43 +167999,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 @@ -163254,10 +168010,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -163273,9 +168025,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -163318,8 +168067,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -163352,7 +168099,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -163368,11 +168114,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -163402,8 +168143,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -163414,9 +168153,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -163472,43 +168288,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 @@ -163520,10 +168299,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -163539,9 +168314,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -163584,8 +168356,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -163618,7 +168388,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -163634,12 +168403,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -163669,8 +168432,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -163681,9 +168442,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -163739,43 +168578,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 @@ -163787,10 +168589,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -163806,9 +168604,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -163851,8 +168646,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -163885,7 +168678,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -163901,11 +168693,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -163935,8 +168722,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -163947,9 +168732,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -164005,43 +168867,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 @@ -164053,10 +168878,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -164072,9 +168893,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -164117,8 +168935,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -164151,7 +168967,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -164167,6 +168982,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -164851,6 +169762,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -164873,17 +169785,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 @@ -164893,8 +169805,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -164903,12 +169815,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 @@ -164927,7 +169839,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -164943,14 +169855,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: @@ -164966,7 +169878,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -165075,20 +169987,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 @@ -165097,7 +170009,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -165110,26 +170022,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: @@ -165151,7 +170070,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -165160,7 +170079,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -165173,26 +170092,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: @@ -165212,7 +170138,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -165267,9 +170193,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -165278,7 +170204,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -165288,7 +170214,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -165298,7 +170224,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -165323,14 +170249,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: @@ -165370,7 +170296,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -165485,20 +170411,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 @@ -165507,7 +170433,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -165520,26 +170446,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: @@ -165561,7 +170494,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -165570,7 +170503,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -165583,26 +170516,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: @@ -165622,7 +170562,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -165677,9 +170617,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -165688,7 +170628,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -165698,7 +170638,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -165708,7 +170648,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -165733,14 +170673,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: @@ -165780,7 +170720,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -165806,11 +170746,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 @@ -166040,6 +170993,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -166058,6 +171016,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -166073,11 +171036,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 @@ -166307,6 +171283,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -166325,6 +171306,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -166336,7 +171322,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -166354,50 +171340,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -166453,43 +171413,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 @@ -166501,10 +171424,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -166520,9 +171439,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -166565,8 +171481,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -166599,7 +171513,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -166615,11 +171528,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -166649,8 +171557,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -166661,9 +171567,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -166719,43 +171702,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 @@ -166767,10 +171713,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -166786,9 +171728,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -166831,8 +171770,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -166865,7 +171802,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -166881,12 +171817,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -166916,8 +171846,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -166928,9 +171856,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -166986,43 +171992,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 @@ -167034,10 +172003,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -167053,9 +172018,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -167098,8 +172060,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -167132,7 +172092,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -167148,11 +172107,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -167182,8 +172136,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -167194,9 +172146,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -167252,43 +172281,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 @@ -167300,10 +172292,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -167319,9 +172307,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -167364,8 +172349,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -167398,7 +172381,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -167414,6 +172396,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -168104,6 +173182,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -168126,17 +173205,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 @@ -168146,8 +173225,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -168156,12 +173235,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 @@ -168180,7 +173259,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -168196,14 +173275,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: @@ -168219,7 +173298,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -168328,20 +173407,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 @@ -168350,7 +173429,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -168363,26 +173442,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: @@ -168404,7 +173490,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -168413,7 +173499,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -168426,26 +173512,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: @@ -168465,7 +173558,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -168520,9 +173613,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -168531,7 +173624,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -168541,7 +173634,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -168551,7 +173644,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -168576,14 +173669,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: @@ -168623,7 +173716,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -168738,20 +173831,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 @@ -168760,7 +173853,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -168773,26 +173866,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: @@ -168814,7 +173914,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -168823,7 +173923,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -168836,26 +173936,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: @@ -168875,7 +173982,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -168930,9 +174037,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -168941,7 +174048,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -168951,7 +174058,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -168961,7 +174068,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -168986,14 +174093,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: @@ -169033,7 +174140,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -169059,11 +174166,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 @@ -169293,6 +174413,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -169311,6 +174436,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -169326,11 +174456,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 @@ -169560,6 +174703,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -169578,6 +174726,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -169589,7 +174742,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -169607,50 +174760,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -169706,43 +174833,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 @@ -169754,10 +174844,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -169773,9 +174859,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -169818,8 +174901,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -169852,7 +174933,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -169868,11 +174948,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -169902,8 +174977,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -169914,9 +174987,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -169972,43 +175122,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 @@ -170020,10 +175133,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -170039,9 +175148,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -170084,8 +175190,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -170118,7 +175222,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -170134,12 +175237,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -170169,8 +175266,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -170181,9 +175276,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -170239,43 +175412,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 @@ -170287,10 +175423,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -170306,9 +175438,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -170351,8 +175480,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -170385,7 +175512,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -170401,11 +175527,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -170435,8 +175556,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -170447,9 +175566,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -170505,43 +175701,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 @@ -170553,10 +175712,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -170572,9 +175727,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -170617,8 +175769,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -170651,7 +175801,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -170667,6 +175816,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -171288,6 +176533,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -171310,17 +176556,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 @@ -171330,8 +176576,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -171340,12 +176586,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 @@ -171364,7 +176610,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -171380,14 +176626,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: @@ -171403,7 +176649,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -171512,20 +176758,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 @@ -171534,7 +176780,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -171547,26 +176793,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: @@ -171588,7 +176841,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -171597,7 +176850,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -171610,26 +176863,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: @@ -171649,7 +176909,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -171704,9 +176964,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -171715,7 +176975,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -171725,7 +176985,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -171735,7 +176995,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -171760,14 +177020,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: @@ -171807,7 +177067,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -171922,20 +177182,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 @@ -171944,7 +177204,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -171957,26 +177217,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: @@ -171998,7 +177265,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172007,7 +177274,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172020,26 +177287,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: @@ -172059,7 +177333,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -172114,9 +177388,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172125,7 +177399,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172135,7 +177409,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -172145,7 +177419,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -172170,14 +177444,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: @@ -172217,7 +177491,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -172243,11 +177517,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 @@ -172477,6 +177764,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -172495,6 +177787,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -172510,11 +177807,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 @@ -172744,6 +178054,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -172762,6 +178077,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -172773,7 +178093,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -172791,50 +178111,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -172890,43 +178184,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 @@ -172938,10 +178195,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -172957,9 +178210,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -173002,8 +178252,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -173036,7 +178284,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -173052,11 +178299,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -173086,8 +178328,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -173098,9 +178338,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -173156,43 +178473,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 @@ -173204,10 +178484,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -173223,9 +178499,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -173268,8 +178541,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -173302,7 +178573,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -173318,12 +178588,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -173353,8 +178617,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -173365,9 +178627,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -173423,43 +178763,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 @@ -173471,10 +178774,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -173490,9 +178789,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -173535,8 +178831,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -173569,7 +178863,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -173585,11 +178878,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -173619,8 +178907,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -173631,9 +178917,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -173689,43 +179052,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 @@ -173737,10 +179063,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -173756,9 +179078,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -173801,8 +179120,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -173835,7 +179152,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -173851,6 +179167,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -174453,6 +179865,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -174475,17 +179888,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 @@ -174495,8 +179908,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -174505,12 +179918,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 @@ -174529,7 +179942,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -174545,14 +179958,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: @@ -174568,7 +179981,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -174677,20 +180090,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 @@ -174699,7 +180112,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -174712,26 +180125,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: @@ -174753,7 +180173,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -174762,7 +180182,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -174775,26 +180195,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: @@ -174814,7 +180241,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -174869,9 +180296,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -174880,7 +180307,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -174890,7 +180317,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -174900,7 +180327,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -174925,14 +180352,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: @@ -174972,7 +180399,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -175087,20 +180514,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 @@ -175109,7 +180536,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -175122,26 +180549,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: @@ -175163,7 +180597,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -175172,7 +180606,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -175185,26 +180619,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: @@ -175224,7 +180665,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -175279,9 +180720,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -175290,7 +180731,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -175300,7 +180741,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -175310,7 +180751,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -175335,14 +180776,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: @@ -175382,7 +180823,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -175408,11 +180849,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 @@ -175642,6 +181096,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -175660,6 +181119,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -175675,11 +181139,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 @@ -175909,6 +181386,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -175927,6 +181409,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -175938,7 +181425,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -175956,50 +181443,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -176055,43 +181516,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 @@ -176103,10 +181527,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -176122,9 +181542,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -176167,8 +181584,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -176201,7 +181616,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -176217,11 +181631,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -176251,8 +181660,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -176263,9 +181670,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -176321,43 +181805,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 @@ -176369,10 +181816,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -176388,9 +181831,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -176433,8 +181873,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -176467,7 +181905,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -176483,12 +181920,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -176518,8 +181949,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -176530,9 +181959,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -176588,43 +182095,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 @@ -176636,10 +182106,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -176655,9 +182121,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -176700,8 +182163,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -176734,7 +182195,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -176750,11 +182210,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -176784,8 +182239,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -176796,9 +182249,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -176854,43 +182384,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 @@ -176902,10 +182395,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -176921,9 +182410,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -176966,8 +182452,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -177000,7 +182484,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -177016,6 +182499,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -177500,7 +183079,8 @@ components: type: integer backoffLimit: description: Specifies the number of retries before marking this job failed. - Defaults to 6 + Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified. + When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647. format: int32 type: integer backoffLimitPerIndex: @@ -177574,7 +183154,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' @@ -177835,6 +183415,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -177857,17 +183438,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 @@ -177877,8 +183458,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -177887,12 +183468,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 @@ -177911,7 +183492,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -177927,14 +183508,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: @@ -177950,7 +183531,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -178059,20 +183640,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 @@ -178081,7 +183662,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -178094,26 +183675,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: @@ -178135,7 +183723,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -178144,7 +183732,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -178157,26 +183745,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: @@ -178196,7 +183791,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -178251,9 +183846,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -178262,7 +183857,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -178272,7 +183867,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -178282,7 +183877,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -178307,14 +183902,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: @@ -178354,7 +183949,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -178469,20 +184064,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 @@ -178491,7 +184086,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -178504,26 +184099,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: @@ -178545,7 +184147,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -178554,7 +184156,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -178567,26 +184169,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: @@ -178606,7 +184215,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -178661,9 +184270,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -178672,7 +184281,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -178682,7 +184291,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -178692,7 +184301,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -178717,14 +184326,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: @@ -178764,7 +184373,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -178790,11 +184399,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 @@ -179024,6 +184646,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -179042,6 +184669,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -179057,11 +184689,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 @@ -179291,6 +184936,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -179309,6 +184959,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -179320,7 +184975,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -179338,50 +184993,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -179437,43 +185066,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 @@ -179485,10 +185077,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -179504,9 +185092,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -179549,8 +185134,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -179583,7 +185166,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -179599,11 +185181,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -179633,8 +185210,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -179645,9 +185220,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -179703,43 +185355,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 @@ -179751,10 +185366,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -179770,9 +185381,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -179815,8 +185423,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -179849,7 +185455,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -179865,12 +185470,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -179900,8 +185499,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -179912,9 +185509,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -179970,43 +185645,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 @@ -180018,10 +185656,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -180037,9 +185671,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -180082,8 +185713,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -180116,7 +185745,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -180132,11 +185760,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -180166,8 +185789,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -180178,9 +185799,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -180236,43 +185934,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 @@ -180284,10 +185945,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -180303,9 +185960,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -180348,8 +186002,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -180382,7 +186034,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -180398,6 +186049,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -181045,9 +186792,9 @@ 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 is - added, and the lingering pods are removed. The terminal state for such - a Job has the "Complete" condition. Additionally, these rules are evaluated + 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: @@ -181903,13 +187650,11 @@ components: required: - trustBundle type: object - v1beta1.ClusterTrustBundle: + v1alpha1.PodCertificateRequest: description: |- - ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). + PodCertificateRequest encodes a pod requesting a certificate from a given signer. - 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. + Kubelets use this API to implement podCertificate projected volumes example: metadata: generation: 6 @@ -181960,8 +187705,34 @@ components: apiVersion: apiVersion kind: kind spec: - trustBundle: trustBundle + 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 @@ -181976,18 +187747,21 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleSpec' + $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: ClusterTrustBundle - version: v1beta1 + kind: PodCertificateRequest + version: v1alpha1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta1.ClusterTrustBundleList: - description: ClusterTrustBundleList is a collection of ClusterTrustBundle objects + v1alpha1.PodCertificateRequestList: + description: PodCertificateRequestList is a collection of PodCertificateRequest + objects example: metadata: remainingItemCount: 1 @@ -182046,8 +187820,34 @@ components: apiVersion: apiVersion kind: kind spec: - trustBundle: trustBundle + 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: @@ -182097,8 +187897,34 @@ components: apiVersion: apiVersion kind: kind spec: - trustBundle: trustBundle + 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 @@ -182106,9 +187932,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/v1beta1.ClusterTrustBundle' + $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -182122,41 +187948,180 @@ components: type: object x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundleList - version: v1beta1 + kind: PodCertificateRequestList + version: v1alpha1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta1.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 - v1.Lease: - description: Lease defines a lease concept. + 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: |- + ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). + + ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. + + It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle. example: metadata: generation: 6 @@ -182207,13 +188172,8 @@ components: apiVersion: apiVersion kind: kind spec: - renewTime: 2000-01-23T04:56:07.000+00:00 - leaseDurationSeconds: 0 - leaseTransitions: 6 - preferredHolder: preferredHolder - acquireTime: 2000-01-23T04:56:07.000+00:00 - strategy: strategy - holderIdentity: holderIdentity + trustBundle: trustBundle + signerName: signerName properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -182228,16 +188188,18 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.LeaseSpec' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundleSpec' + required: + - spec type: object x-kubernetes-group-version-kind: - - group: coordination.k8s.io - kind: Lease - version: v1 + - group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.LeaseList: - description: LeaseList is a list of Lease objects. + v1beta1.ClusterTrustBundleList: + description: ClusterTrustBundleList is a collection of ClusterTrustBundle objects example: metadata: remainingItemCount: 1 @@ -182296,13 +188258,8 @@ components: apiVersion: apiVersion kind: kind spec: - renewTime: 2000-01-23T04:56:07.000+00:00 - leaseDurationSeconds: 0 - leaseTransitions: 6 - preferredHolder: preferredHolder - acquireTime: 2000-01-23T04:56:07.000+00:00 - strategy: strategy - holderIdentity: holderIdentity + trustBundle: trustBundle + signerName: signerName - metadata: generation: 6 finalizers: @@ -182352,13 +188309,8 @@ components: apiVersion: apiVersion kind: kind spec: - renewTime: 2000-01-23T04:56:07.000+00:00 - leaseDurationSeconds: 0 - leaseTransitions: 6 - preferredHolder: preferredHolder - acquireTime: 2000-01-23T04:56:07.000+00:00 - strategy: strategy - holderIdentity: holderIdentity + trustBundle: trustBundle + signerName: signerName properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -182366,9 +188318,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: items is a list of schema objects. + description: items is a collection of ClusterTrustBundle objects items: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -182381,63 +188333,323 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: coordination.k8s.io - kind: LeaseList - version: v1 + - group: certificates.k8s.io + kind: ClusterTrustBundleList + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.LeaseSpec: - description: LeaseSpec is a specification of a Lease. + v1beta1.ClusterTrustBundleSpec: + description: ClusterTrustBundleSpec contains the signer and trust anchors. example: - renewTime: 2000-01-23T04:56:07.000+00:00 - leaseDurationSeconds: 0 - leaseTransitions: 6 - preferredHolder: preferredHolder - acquireTime: 2000-01-23T04:56:07.000+00:00 - strategy: strategy - holderIdentity: holderIdentity + trustBundle: trustBundle + signerName: signerName properties: - acquireTime: - description: acquireTime is a time when the current lease was acquired. - format: date-time - type: string - holderIdentity: - description: holderIdentity contains the identity of the holder of a current - lease. If Coordinated Leader Election is used, the holder identity must - be equal to the elected LeaseCandidate.metadata.name field. - type: string - leaseDurationSeconds: - description: leaseDurationSeconds is a duration that candidates for a lease - need to wait to force acquire it. This is measured against the time of - last observed renewTime. - format: int32 - type: integer - leaseTransitions: - description: leaseTransitions is the number of transitions of a lease between - holders. - format: int32 - type: integer - preferredHolder: - description: PreferredHolder signals to a lease holder that the lease has - a more optimal holder and should be given up. This field can only be set - if Strategy is also set. - type: string - renewTime: - description: renewTime is a time when the current holder of a lease has - last updated the lease. - format: date-time + 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 - strategy: - description: Strategy indicates the strategy for picking the leader for - coordinated leader election. If the field is not specified, there is no - active coordination for this lease. (Alpha) Using this field requires - the CoordinatedLeaderElection feature gate to be enabled. + 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 - v1alpha2.LeaseCandidate: - description: LeaseCandidate defines a candidate for a Lease object. Candidates - are created such that coordinated leader election will pick the best leader - from the list of candidates. + v1.Lease: + description: Lease defines a lease concept. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + renewTime: 2000-01-23T04:56:07.000+00:00 + leaseDurationSeconds: 0 + leaseTransitions: 6 + preferredHolder: preferredHolder + acquireTime: 2000-01-23T04:56:07.000+00:00 + strategy: strategy + holderIdentity: holderIdentity + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.LeaseSpec' + type: object + x-kubernetes-group-version-kind: + - group: coordination.k8s.io + kind: Lease + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.LeaseList: + description: LeaseList is a list of Lease objects. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + renewTime: 2000-01-23T04:56:07.000+00:00 + leaseDurationSeconds: 0 + leaseTransitions: 6 + preferredHolder: preferredHolder + acquireTime: 2000-01-23T04:56:07.000+00:00 + strategy: strategy + holderIdentity: holderIdentity + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + renewTime: 2000-01-23T04:56:07.000+00:00 + leaseDurationSeconds: 0 + leaseTransitions: 6 + preferredHolder: preferredHolder + acquireTime: 2000-01-23T04:56:07.000+00:00 + strategy: strategy + holderIdentity: holderIdentity + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + items: + description: items is a list of schema objects. + items: + $ref: '#/components/schemas/v1.Lease' + type: array + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: coordination.k8s.io + kind: LeaseList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.LeaseSpec: + description: LeaseSpec is a specification of a Lease. + example: + renewTime: 2000-01-23T04:56:07.000+00:00 + leaseDurationSeconds: 0 + leaseTransitions: 6 + preferredHolder: preferredHolder + acquireTime: 2000-01-23T04:56:07.000+00:00 + strategy: strategy + holderIdentity: holderIdentity + properties: + acquireTime: + description: acquireTime is a time when the current lease was acquired. + format: date-time + type: string + holderIdentity: + description: holderIdentity contains the identity of the holder of a current + lease. If Coordinated Leader Election is used, the holder identity must + be equal to the elected LeaseCandidate.metadata.name field. + type: string + leaseDurationSeconds: + description: leaseDurationSeconds is a duration that candidates for a lease + need to wait to force acquire it. This is measured against the time of + last observed renewTime. + format: int32 + type: integer + leaseTransitions: + description: leaseTransitions is the number of transitions of a lease between + holders. + format: int32 + type: integer + preferredHolder: + description: PreferredHolder signals to a lease holder that the lease has + a more optimal holder and should be given up. This field can only be set + if Strategy is also set. + type: string + renewTime: + description: renewTime is a time when the current holder of a lease has + last updated the lease. + format: date-time + type: string + strategy: + description: Strategy indicates the strategy for picking the leader for + coordinated leader election. If the field is not specified, there is no + active coordination for this lease. (Alpha) Using this field requires + the CoordinatedLeaderElection feature gate to be enabled. + type: string + type: object + v1alpha2.LeaseCandidate: + description: LeaseCandidate defines a candidate for a Lease object. Candidates + are created such that coordinated leader election will pick the best leader + from the list of candidates. example: metadata: generation: 6 @@ -183006,7 +189218,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 @@ -184607,10 +190819,10 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key properties: @@ -184643,14 +190855,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: @@ -184695,50 +190907,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -184794,43 +190980,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 @@ -184842,10 +190991,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -184861,9 +191006,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -184906,8 +191048,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -184940,7 +191080,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -184956,6 +191095,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 properties: args: description: 'Arguments to the entrypoint. The container image''s CMD is @@ -184996,11 +191231,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 @@ -185052,21 +191286,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: @@ -185138,6 +191385,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: @@ -185211,6 +191482,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 one @@ -185227,7 +191544,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: @@ -185255,7 +191572,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: @@ -185318,7 +191635,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -185340,7 +191657,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 @@ -185366,17 +191683,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: @@ -185471,11 +191788,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' @@ -185498,7 +191815,7 @@ components: mode. example: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -185507,7 +191824,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -185528,7 +191845,7 @@ components: description: DownwardAPIVolumeFile represents information to create the file containing the pod field example: - mode: 1 + mode: 2 path: path resourceFieldRef: divisor: divisor @@ -185563,9 +191880,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 @@ -185574,7 +191891,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -186389,7 +192706,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' @@ -186415,9 +192732,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 @@ -186451,11 +192774,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: @@ -186472,11 +192802,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 @@ -186706,6 +193049,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -186724,6 +193072,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -186774,11 +193127,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 @@ -186823,9 +193175,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: @@ -187401,7 +193761,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 @@ -187438,6 +193798,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. @@ -187645,8 +194038,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' @@ -187846,7 +194238,7 @@ components: example: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -187942,7 +194334,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: @@ -188388,11 +194780,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 @@ -190388,7 +196780,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -190523,7 +196915,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -191056,16 +197448,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. @@ -191193,8 +197582,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' @@ -191466,7 +197854,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -191601,7 +197989,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -191759,7 +198147,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -191894,7 +198282,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -192033,7 +198421,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -192168,7 +198556,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -192267,8 +198655,7 @@ components: 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 @@ -192396,6 +198783,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -192418,17 +198806,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 @@ -192438,8 +198826,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -192448,12 +198836,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 @@ -192472,7 +198860,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -192488,14 +198876,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: @@ -192511,7 +198899,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -192620,20 +199008,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 @@ -192642,7 +199030,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -192655,26 +199043,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: @@ -192696,7 +199091,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -192705,7 +199100,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -192718,26 +199113,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: @@ -192757,7 +199159,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -192812,9 +199214,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -192823,7 +199225,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -192833,7 +199235,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -192843,7 +199245,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -192868,14 +199270,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: @@ -192915,7 +199317,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -193030,20 +199432,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 @@ -193052,7 +199454,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -193065,26 +199467,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: @@ -193106,7 +199515,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -193115,7 +199524,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -193128,26 +199537,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: @@ -193167,7 +199583,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -193222,9 +199638,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -193233,7 +199649,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -193243,7 +199659,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -193253,7 +199669,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -193278,14 +199694,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: @@ -193325,7 +199741,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -193351,11 +199767,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 @@ -193585,6 +200014,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -193603,6 +200037,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -193618,11 +200057,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 @@ -193852,6 +200304,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -193870,6 +200327,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -193881,7 +200343,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -193899,50 +200361,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -193998,43 +200434,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 @@ -194046,10 +200445,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -194065,9 +200460,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -194110,8 +200502,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -194144,7 +200534,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -194160,11 +200549,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -194194,8 +200578,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -194206,9 +200588,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -194264,43 +200723,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 @@ -194312,10 +200734,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -194331,9 +200749,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -194376,8 +200791,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -194410,7 +200823,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -194426,12 +200838,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -194461,8 +200867,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -194473,9 +200877,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -194531,43 +201013,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 @@ -194579,10 +201024,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -194598,9 +201039,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -194643,8 +201081,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -194677,7 +201113,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -194693,11 +201128,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -194727,8 +201157,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -194739,9 +201167,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -194797,43 +201302,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 @@ -194845,10 +201313,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -194864,9 +201328,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -194909,8 +201370,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -194943,7 +201402,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -194959,6 +201417,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -195399,7 +201953,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -195421,7 +201975,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 @@ -195447,17 +202001,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: @@ -195473,7 +202027,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -195495,7 +202049,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 @@ -195521,18 +202075,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: @@ -195555,7 +202118,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -195577,7 +202140,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 @@ -195603,17 +202166,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: @@ -195629,7 +202192,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -195651,7 +202214,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 @@ -195677,17 +202240,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 @@ -195699,14 +202262,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: @@ -195725,7 +202288,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -195747,7 +202310,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 @@ -195773,17 +202336,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: @@ -195799,7 +202362,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -195821,7 +202384,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 @@ -195847,18 +202410,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 @@ -196340,8 +202903,8 @@ 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; + 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' @@ -196360,6 +202923,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. @@ -196368,7 +202988,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: @@ -196459,6 +203079,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: @@ -196550,6 +203199,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -196572,17 +203222,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 @@ -196592,8 +203242,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -196602,12 +203252,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 @@ -196626,7 +203276,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -196642,14 +203292,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: @@ -196665,7 +203315,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -196774,20 +203424,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 @@ -196796,7 +203446,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -196809,26 +203459,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: @@ -196850,7 +203507,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -196859,7 +203516,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -196872,26 +203529,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: @@ -196911,7 +203575,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -196966,9 +203630,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -196977,7 +203641,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -196987,7 +203651,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -196997,7 +203661,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -197022,14 +203686,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: @@ -197069,7 +203733,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -197184,20 +203848,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 @@ -197206,7 +203870,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197219,26 +203883,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: @@ -197260,7 +203931,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197269,7 +203940,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197282,26 +203953,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: @@ -197321,7 +203999,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -197376,9 +204054,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197387,7 +204065,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197397,7 +204075,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -197407,7 +204085,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -197432,14 +204110,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: @@ -197479,7 +204157,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -197505,11 +204183,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 @@ -197739,6 +204430,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -197757,6 +204453,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -197772,11 +204473,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 @@ -198006,6 +204720,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -198024,6 +204743,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -198035,7 +204759,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -198053,50 +204777,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -198152,43 +204850,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 @@ -198200,10 +204861,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -198219,9 +204876,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -198264,8 +204918,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -198298,7 +204950,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -198314,11 +204965,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -198348,8 +204994,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -198360,9 +205004,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -198418,43 +205139,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 @@ -198466,10 +205150,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -198485,9 +205165,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -198530,8 +205207,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -198564,7 +205239,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -198580,12 +205254,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -198615,8 +205283,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -198627,9 +205293,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -198685,43 +205429,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 @@ -198733,10 +205440,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -198752,9 +205455,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -198797,8 +205497,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -198831,7 +205529,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -198847,11 +205544,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -198881,8 +205573,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -198893,9 +205583,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -198951,43 +205718,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 @@ -198999,10 +205729,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -199018,9 +205744,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -199063,8 +205786,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -199097,7 +205818,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -199113,6 +205833,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -199553,7 +206369,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -199575,7 +206391,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 @@ -199601,17 +206417,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: @@ -199627,7 +206443,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -199649,7 +206465,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 @@ -199675,18 +206491,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: @@ -199709,7 +206534,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -199731,7 +206556,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 @@ -199757,17 +206582,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: @@ -199783,7 +206608,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -199805,7 +206630,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 @@ -199831,17 +206656,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 @@ -199853,14 +206678,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: @@ -199879,7 +206704,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -199901,7 +206726,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 @@ -199927,17 +206752,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: @@ -199953,7 +206778,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -199975,7 +206800,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 @@ -200001,18 +206826,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: @@ -200082,6 +206907,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -200104,17 +206930,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 @@ -200124,8 +206950,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -200134,12 +206960,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 @@ -200158,7 +206984,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -200174,14 +207000,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: @@ -200197,7 +207023,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -200306,20 +207132,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 @@ -200328,7 +207154,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -200341,26 +207167,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: @@ -200382,7 +207215,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -200391,7 +207224,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -200404,26 +207237,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: @@ -200443,7 +207283,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -200498,9 +207338,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -200509,7 +207349,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -200519,7 +207359,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -200529,7 +207369,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -200554,14 +207394,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: @@ -200601,7 +207441,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -200716,20 +207556,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 @@ -200738,7 +207578,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -200751,26 +207591,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: @@ -200792,7 +207639,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -200801,7 +207648,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -200814,26 +207661,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: @@ -200853,7 +207707,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -200908,9 +207762,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -200919,7 +207773,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -200929,7 +207783,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -200939,7 +207793,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -200964,14 +207818,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: @@ -201011,7 +207865,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -201037,11 +207891,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 @@ -201271,6 +208138,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -201289,6 +208161,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -201304,11 +208181,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 @@ -201538,6 +208428,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -201556,6 +208451,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -201567,7 +208467,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -201585,50 +208485,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -201684,43 +208558,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 @@ -201732,10 +208569,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -201751,9 +208584,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -201796,8 +208626,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -201830,7 +208658,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -201846,11 +208673,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -201880,8 +208702,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -201892,9 +208712,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -201950,43 +208847,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 @@ -201998,10 +208858,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -202017,9 +208873,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -202062,8 +208915,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -202096,7 +208947,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -202112,12 +208962,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -202147,8 +208991,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -202159,9 +209001,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -202217,43 +209137,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 @@ -202265,10 +209148,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -202284,9 +209163,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -202329,8 +209205,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -202363,7 +209237,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -202379,11 +209252,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -202413,8 +209281,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -202425,9 +209291,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -202483,43 +209426,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 @@ -202531,10 +209437,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -202550,9 +209452,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -202595,8 +209494,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -202629,7 +209526,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -202645,6 +209541,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -203085,7 +210077,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -203107,7 +210099,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 @@ -203133,17 +210125,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: @@ -203159,7 +210151,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -203181,7 +210173,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 @@ -203207,18 +210199,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: @@ -203241,7 +210242,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -203263,7 +210264,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 @@ -203289,17 +210290,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: @@ -203315,7 +210316,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -203337,7 +210338,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 @@ -203363,17 +210364,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 @@ -203385,14 +210386,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: @@ -203411,7 +210412,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -203433,7 +210434,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 @@ -203459,17 +210460,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: @@ -203485,7 +210486,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -203507,7 +210508,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 @@ -203533,18 +210534,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 @@ -203679,17 +210680,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 @@ -203699,8 +210700,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy properties: appArmorProfile: @@ -203821,6 +210822,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -203843,17 +210845,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 @@ -203863,8 +210865,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -203873,12 +210875,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 @@ -203897,7 +210899,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -203913,14 +210915,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: @@ -203936,7 +210938,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -204045,20 +211047,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 @@ -204067,7 +211069,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204080,26 +211082,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: @@ -204121,7 +211130,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204130,7 +211139,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204143,26 +211152,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: @@ -204182,7 +211198,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -204237,9 +211253,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204248,7 +211264,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204258,7 +211274,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -204268,7 +211284,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -204293,14 +211309,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: @@ -204340,7 +211356,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -204455,20 +211471,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 @@ -204477,7 +211493,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204490,26 +211506,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: @@ -204531,7 +211554,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204540,7 +211563,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204553,26 +211576,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: @@ -204592,7 +211622,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -204647,9 +211677,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204658,7 +211688,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204668,7 +211698,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -204678,7 +211708,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -204703,14 +211733,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: @@ -204750,7 +211780,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -204776,11 +211806,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 @@ -205010,6 +212053,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -205028,6 +212076,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -205043,11 +212096,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 @@ -205277,6 +212343,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -205295,6 +212366,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -205306,7 +212382,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -205324,50 +212400,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -205423,43 +212473,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 @@ -205471,10 +212484,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -205490,9 +212499,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -205535,8 +212541,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -205569,7 +212573,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -205585,11 +212588,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -205619,8 +212617,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -205631,9 +212627,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -205689,43 +212762,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 @@ -205737,10 +212773,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -205756,9 +212788,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -205801,8 +212830,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -205835,7 +212862,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -205851,12 +212877,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -205886,8 +212906,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -205898,9 +212916,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -205956,43 +213052,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 @@ -206004,10 +213063,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -206023,9 +213078,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -206068,8 +213120,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -206102,7 +213152,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -206118,11 +213167,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -206152,8 +213196,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -206164,9 +213206,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -206222,43 +213341,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 @@ -206270,10 +213352,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -206289,9 +213367,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -206334,8 +213409,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -206368,7 +213441,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -206384,6 +213456,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -206869,8 +214037,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.' @@ -206890,6 +214061,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 @@ -207132,7 +214309,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -207154,7 +214331,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 @@ -207180,17 +214357,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: @@ -207206,7 +214383,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -207228,7 +214405,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 @@ -207254,18 +214431,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: @@ -207288,7 +214474,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -207310,7 +214496,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 @@ -207336,17 +214522,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: @@ -207362,7 +214548,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -207384,7 +214570,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 @@ -207410,17 +214596,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 @@ -207432,14 +214618,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: @@ -207458,7 +214644,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -207480,7 +214666,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 @@ -207506,17 +214692,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: @@ -207532,7 +214718,7 @@ components: health: health image: image imageID: imageID - restartCount: 7 + restartCount: 0 resources: claims: - request: request @@ -207554,7 +214740,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 @@ -207580,18 +214766,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' @@ -207626,6 +214812,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 @@ -207810,6 +214998,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -207832,17 +215021,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 @@ -207852,8 +215041,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -207862,12 +215051,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 @@ -207886,7 +215075,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -207902,14 +215091,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: @@ -207925,7 +215114,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -208034,20 +215223,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 @@ -208056,7 +215245,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208069,26 +215258,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: @@ -208110,7 +215306,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208119,7 +215315,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208132,26 +215328,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: @@ -208171,7 +215374,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -208226,9 +215429,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208237,7 +215440,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208247,7 +215450,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -208257,7 +215460,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -208282,14 +215485,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: @@ -208329,7 +215532,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -208444,20 +215647,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 @@ -208466,7 +215669,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208479,26 +215682,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: @@ -208520,7 +215730,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208529,7 +215739,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208542,26 +215752,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: @@ -208581,7 +215798,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -208636,9 +215853,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208647,7 +215864,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -208657,7 +215874,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -208667,7 +215884,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -208692,14 +215909,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: @@ -208739,7 +215956,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -208765,11 +215982,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 @@ -208999,6 +216229,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -209017,6 +216252,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -209032,11 +216272,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 @@ -209266,6 +216519,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -209284,6 +216542,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -209295,7 +216558,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -209313,50 +216576,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -209412,43 +216649,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 @@ -209460,10 +216660,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -209479,9 +216675,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -209524,8 +216717,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -209558,7 +216749,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -209574,11 +216764,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -209608,8 +216793,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -209620,9 +216803,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -209678,43 +216938,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 @@ -209726,10 +216949,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -209745,9 +216964,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -209790,8 +217006,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -209824,7 +217038,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -209840,12 +217053,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -209875,8 +217082,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -209887,9 +217092,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -209945,43 +217228,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 @@ -209993,10 +217239,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -210012,9 +217254,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -210057,8 +217296,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -210091,7 +217328,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -210107,11 +217343,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -210141,8 +217372,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -210153,9 +217382,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -210211,43 +217517,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 @@ -210259,10 +217528,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -210278,9 +217543,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -210323,8 +217585,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -210357,7 +217617,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -210373,6 +217632,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -210938,6 +218293,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -210960,17 +218316,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 @@ -210980,8 +218336,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -210990,12 +218346,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 @@ -211014,7 +218370,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -211030,14 +218386,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: @@ -211053,7 +218409,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -211162,20 +218518,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 @@ -211184,7 +218540,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211197,26 +218553,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: @@ -211238,7 +218601,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211247,7 +218610,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211260,26 +218623,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: @@ -211299,7 +218669,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -211354,9 +218724,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211365,7 +218735,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211375,7 +218745,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -211385,7 +218755,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -211410,14 +218780,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: @@ -211457,7 +218827,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -211572,20 +218942,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 @@ -211594,7 +218964,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211607,26 +218977,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: @@ -211648,7 +219025,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211657,7 +219034,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211670,26 +219047,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: @@ -211709,7 +219093,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -211764,9 +219148,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211775,7 +219159,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211785,7 +219169,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -211795,7 +219179,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -211820,14 +219204,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: @@ -211867,7 +219251,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -211893,11 +219277,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 @@ -212127,6 +219524,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -212145,6 +219547,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -212160,11 +219567,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 @@ -212394,6 +219814,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -212412,6 +219837,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -212423,7 +219853,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -212441,50 +219871,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -212540,43 +219944,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 @@ -212588,10 +219955,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -212607,9 +219970,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -212652,8 +220012,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -212686,7 +220044,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -212702,11 +220059,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -212736,8 +220088,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -212748,9 +220098,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -212806,43 +220233,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 @@ -212854,10 +220244,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -212873,9 +220259,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -212918,8 +220301,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -212952,7 +220333,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -212968,12 +220348,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -213003,8 +220377,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -213015,9 +220387,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -213073,43 +220523,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 @@ -213121,10 +220534,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -213140,9 +220549,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -213185,8 +220591,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -213219,7 +220623,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -213235,11 +220638,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -213269,8 +220667,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -213281,9 +220677,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -213339,43 +220812,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 @@ -213387,10 +220823,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -213406,9 +220838,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -213451,8 +220880,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -213485,7 +220912,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -213501,6 +220927,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -214033,6 +221555,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -214055,17 +221578,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 @@ -214075,8 +221598,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -214085,12 +221608,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 @@ -214109,7 +221632,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -214125,14 +221648,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: @@ -214148,7 +221671,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -214257,20 +221780,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 @@ -214279,7 +221802,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -214292,26 +221815,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: @@ -214333,7 +221863,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -214342,7 +221872,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -214355,26 +221885,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: @@ -214394,7 +221931,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -214449,9 +221986,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -214460,7 +221997,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -214470,7 +222007,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -214480,7 +222017,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -214505,14 +222042,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: @@ -214552,7 +222089,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -214667,20 +222204,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 @@ -214689,7 +222226,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -214702,26 +222239,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: @@ -214743,7 +222287,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -214752,7 +222296,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -214765,26 +222309,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: @@ -214804,7 +222355,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -214859,9 +222410,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -214870,7 +222421,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -214880,7 +222431,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -214890,7 +222441,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -214915,14 +222466,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: @@ -214962,7 +222513,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -214988,11 +222539,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 @@ -215222,6 +222786,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -215240,6 +222809,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -215255,11 +222829,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 @@ -215489,6 +223076,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -215507,6 +223099,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -215518,7 +223115,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -215536,50 +223133,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -215635,43 +223206,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 @@ -215683,10 +223217,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -215702,9 +223232,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -215747,8 +223274,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -215781,7 +223306,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -215797,11 +223321,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -215831,8 +223350,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -215843,9 +223360,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -215901,43 +223495,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 @@ -215949,10 +223506,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -215968,9 +223521,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -216013,8 +223563,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -216047,7 +223595,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -216063,12 +223610,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -216098,8 +223639,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -216110,9 +223649,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -216168,43 +223785,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 @@ -216216,10 +223796,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -216235,9 +223811,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -216280,8 +223853,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -216314,7 +223885,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -216330,11 +223900,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -216364,8 +223929,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -216376,9 +223939,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -216434,43 +224074,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 @@ -216482,10 +224085,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -216501,9 +224100,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -216546,8 +224142,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -216580,7 +224174,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -216596,6 +224189,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -217158,6 +224847,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -217180,17 +224870,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 @@ -217200,8 +224890,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -217210,12 +224900,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 @@ -217234,7 +224924,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -217250,14 +224940,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: @@ -217273,7 +224963,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -217382,20 +225072,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 @@ -217404,7 +225094,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -217417,26 +225107,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: @@ -217458,7 +225155,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -217467,7 +225164,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -217480,26 +225177,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: @@ -217519,7 +225223,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -217574,9 +225278,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -217585,7 +225289,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -217595,7 +225299,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -217605,7 +225309,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -217630,14 +225334,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: @@ -217677,7 +225381,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -217792,20 +225496,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 @@ -217814,7 +225518,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -217827,26 +225531,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: @@ -217868,7 +225579,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -217877,7 +225588,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -217890,26 +225601,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: @@ -217929,7 +225647,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -217984,9 +225702,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -217995,7 +225713,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -218005,7 +225723,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -218015,7 +225733,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -218040,14 +225758,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: @@ -218087,7 +225805,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -218113,11 +225831,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 @@ -218347,6 +226078,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -218365,6 +226101,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -218380,11 +226121,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 @@ -218614,6 +226368,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -218632,6 +226391,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -218643,7 +226407,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -218661,50 +226425,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -218760,43 +226498,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 @@ -218808,10 +226509,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -218827,9 +226524,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -218872,8 +226566,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -218906,7 +226598,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -218922,11 +226613,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -218956,8 +226642,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -218968,9 +226652,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -219026,43 +226787,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 @@ -219074,10 +226798,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -219093,9 +226813,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -219138,8 +226855,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -219172,7 +226887,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -219188,12 +226902,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -219223,8 +226931,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -219235,9 +226941,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -219293,43 +227077,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 @@ -219341,10 +227088,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -219360,9 +227103,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -219405,8 +227145,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -219439,7 +227177,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -219455,11 +227192,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -219489,8 +227221,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -219501,9 +227231,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -219559,43 +227366,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 @@ -219607,10 +227377,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -219626,9 +227392,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -219671,8 +227434,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -219705,7 +227466,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -219721,6 +227481,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -220319,7 +228175,7 @@ components: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -220328,7 +228184,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -220341,26 +228197,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: @@ -220382,7 +228245,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -220391,7 +228254,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -220404,26 +228267,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: @@ -220443,7 +228313,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 @@ -220727,6 +228597,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -220749,17 +228620,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 @@ -220769,8 +228640,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -220779,12 +228650,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 @@ -220803,7 +228674,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -220819,14 +228690,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: @@ -220842,7 +228713,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -220951,20 +228822,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 @@ -220973,7 +228844,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -220986,26 +228857,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: @@ -221027,7 +228905,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -221036,7 +228914,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -221049,26 +228927,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: @@ -221088,7 +228973,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -221143,9 +229028,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -221154,7 +229039,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -221164,7 +229049,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -221174,7 +229059,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -221199,14 +229084,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: @@ -221246,7 +229131,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -221361,20 +229246,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 @@ -221383,7 +229268,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -221396,26 +229281,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: @@ -221437,7 +229329,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -221446,7 +229338,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -221459,26 +229351,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: @@ -221498,7 +229397,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -221553,9 +229452,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -221564,7 +229463,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -221574,7 +229473,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -221584,7 +229483,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -221609,14 +229508,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: @@ -221656,7 +229555,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -221682,11 +229581,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 @@ -221916,6 +229828,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -221934,6 +229851,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -221949,11 +229871,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 @@ -222183,6 +230118,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -222201,6 +230141,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -222212,7 +230157,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -222230,50 +230175,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -222329,43 +230248,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 @@ -222377,10 +230259,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -222396,9 +230274,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -222441,8 +230316,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -222475,7 +230348,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -222491,11 +230363,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -222525,8 +230392,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -222537,9 +230402,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -222595,43 +230537,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 @@ -222643,10 +230548,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -222662,9 +230563,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -222707,8 +230605,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -222741,7 +230637,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -222757,12 +230652,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -222792,8 +230681,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -222804,9 +230691,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -222862,43 +230827,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 @@ -222910,10 +230838,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -222929,9 +230853,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -222974,8 +230895,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -223008,7 +230927,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -223024,11 +230942,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -223058,8 +230971,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -223070,9 +230981,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -223128,43 +231116,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 @@ -223176,10 +231127,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -223195,9 +231142,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -223240,8 +231184,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -223274,7 +231216,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -223290,6 +231231,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -223910,6 +231947,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -223932,17 +231970,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 @@ -223952,8 +231990,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -223962,12 +232000,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 @@ -223986,7 +232024,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -224002,14 +232040,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: @@ -224025,7 +232063,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -224134,20 +232172,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 @@ -224156,7 +232194,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -224169,26 +232207,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: @@ -224210,7 +232255,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -224219,7 +232264,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -224232,26 +232277,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: @@ -224271,7 +232323,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -224326,9 +232378,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -224337,7 +232389,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -224347,7 +232399,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -224357,7 +232409,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -224382,14 +232434,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: @@ -224429,7 +232481,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -224544,20 +232596,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 @@ -224566,7 +232618,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -224579,26 +232631,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: @@ -224620,7 +232679,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -224629,7 +232688,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -224642,26 +232701,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: @@ -224681,7 +232747,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -224736,9 +232802,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -224747,7 +232813,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -224757,7 +232823,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -224767,7 +232833,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -224792,14 +232858,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: @@ -224839,7 +232905,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -224865,11 +232931,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 @@ -225099,6 +233178,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -225117,6 +233201,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -225132,11 +233221,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 @@ -225366,6 +233468,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -225384,6 +233491,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -225395,7 +233507,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -225413,50 +233525,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -225512,43 +233598,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 @@ -225560,10 +233609,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -225579,9 +233624,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -225624,8 +233666,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -225658,7 +233698,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -225674,11 +233713,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -225708,8 +233742,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -225720,9 +233752,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -225778,43 +233887,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 @@ -225826,10 +233898,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -225845,9 +233913,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -225890,8 +233955,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -225924,7 +233987,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -225940,12 +234002,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -225975,8 +234031,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -225987,9 +234041,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -226045,43 +234177,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 @@ -226093,10 +234188,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -226112,9 +234203,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -226157,8 +234245,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -226191,7 +234277,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -226207,11 +234292,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -226241,8 +234321,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -226253,9 +234331,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -226311,43 +234466,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 @@ -226359,10 +234477,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -226378,9 +234492,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -226423,8 +234534,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -226457,7 +234566,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -226473,6 +234581,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -227027,6 +235231,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -227049,17 +235254,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 @@ -227069,8 +235274,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -227079,12 +235284,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 @@ -227103,7 +235308,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -227119,14 +235324,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: @@ -227142,7 +235347,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -227251,20 +235456,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 @@ -227273,7 +235478,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -227286,26 +235491,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: @@ -227327,7 +235539,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -227336,7 +235548,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -227349,26 +235561,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: @@ -227388,7 +235607,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -227443,9 +235662,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -227454,7 +235673,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -227464,7 +235683,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -227474,7 +235693,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -227499,14 +235718,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: @@ -227546,7 +235765,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -227661,20 +235880,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 @@ -227683,7 +235902,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -227696,26 +235915,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: @@ -227737,7 +235963,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -227746,7 +235972,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -227759,26 +235985,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: @@ -227798,7 +236031,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -227853,9 +236086,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -227864,7 +236097,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -227874,7 +236107,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -227884,7 +236117,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -227909,14 +236142,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: @@ -227956,7 +236189,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -227982,11 +236215,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 @@ -228216,6 +236462,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -228234,6 +236485,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -228249,11 +236505,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 @@ -228483,6 +236752,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -228501,6 +236775,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -228512,7 +236791,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -228530,50 +236809,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -228629,43 +236882,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 @@ -228677,10 +236893,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -228696,9 +236908,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -228741,8 +236950,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -228775,7 +236982,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -228791,11 +236997,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -228825,8 +237026,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -228837,9 +237036,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -228895,43 +237171,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 @@ -228943,10 +237182,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -228962,9 +237197,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -229007,8 +237239,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -229041,7 +237271,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -229057,12 +237286,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -229092,8 +237315,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -229104,9 +237325,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -229162,43 +237461,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 @@ -229210,10 +237472,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -229229,9 +237487,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -229274,8 +237529,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -229308,7 +237561,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -229324,11 +237576,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -229358,8 +237605,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -229370,9 +237615,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -229428,43 +237750,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 @@ -229476,10 +237761,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -229495,9 +237776,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -229540,8 +237818,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -229574,7 +237850,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -229590,6 +237865,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -230126,6 +238497,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -230148,17 +238520,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 @@ -230168,8 +238540,8 @@ components: hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName supplementalGroups: - - 5 - - 5 + - 9 + - 9 supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: @@ -230178,12 +238550,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 @@ -230202,7 +238574,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -230218,14 +238590,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: @@ -230241,7 +238613,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -230350,20 +238722,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 @@ -230372,7 +238744,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -230385,26 +238757,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: @@ -230426,7 +238805,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -230435,7 +238814,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -230448,26 +238827,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: @@ -230487,7 +238873,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -230542,9 +238928,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -230553,7 +238939,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -230563,7 +238949,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -230573,7 +238959,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -230598,14 +238984,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: @@ -230645,7 +239031,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -230760,20 +239146,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 @@ -230782,7 +239168,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -230795,26 +239181,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: @@ -230836,7 +239229,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -230845,7 +239238,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -230858,26 +239251,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: @@ -230897,7 +239297,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -230952,9 +239352,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -230963,7 +239363,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -230973,7 +239373,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -230983,7 +239383,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -231008,14 +239408,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: @@ -231055,7 +239455,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -231081,11 +239481,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 @@ -231315,6 +239728,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -231333,6 +239751,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -231348,11 +239771,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 @@ -231582,6 +240018,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -231600,6 +240041,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -231611,7 +240057,7 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 restartPolicy: restartPolicy shareProcessNamespace: true hostUsers: true @@ -231629,50 +240075,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: {} - limits: {} securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -231728,43 +240148,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 @@ -231776,10 +240159,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -231795,9 +240174,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -231840,8 +240216,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -231874,7 +240248,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -231890,11 +240263,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -231924,8 +240292,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -231936,9 +240302,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -231994,43 +240437,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 @@ -232042,10 +240448,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -232061,9 +240463,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -232106,8 +240505,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -232140,7 +240537,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -232156,12 +240552,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -232191,8 +240581,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -232203,9 +240591,87 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -232261,43 +240727,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 @@ -232309,10 +240738,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -232328,9 +240753,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -232373,8 +240795,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -232407,7 +240827,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -232423,11 +240842,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -232457,8 +240871,6 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy terminationMessagePath: terminationMessagePath workingDir: workingDir resources: @@ -232469,9 +240881,86 @@ components: name: name requests: {} limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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 @@ -232527,43 +241016,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 @@ -232575,10 +241027,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -232594,9 +241042,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -232639,8 +241084,6 @@ components: - name: name value: value stopSignal: stopSignal - name: name - tty: true readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -232673,7 +241116,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -232689,6 +241131,102 @@ 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: {} + limits: {} + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: 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: @@ -233195,7 +241733,7 @@ components: required: - replicas type: object - v1.ResourceClaim: + core.v1.ResourceClaim: description: ResourceClaim references one entry in PodSpec.ResourceClaims. example: request: request @@ -233637,11 +242175,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: @@ -234216,10 +242754,10 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key properties: @@ -234269,13 +242807,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: @@ -234316,7 +242854,7 @@ components: both are set, the values in SecurityContext take precedence. example: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -234867,7 +243405,7 @@ components: example: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 properties: audience: description: audience is the intended audience of the token. A recipient @@ -235694,7 +244232,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: @@ -235709,7 +244246,7 @@ components: matches the triple using the matching operator . example: effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -235797,7 +244334,7 @@ components: example: nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -235813,7 +244350,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -236052,20 +244589,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 @@ -236074,7 +244611,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -236087,26 +244624,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: @@ -236128,7 +244672,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -236137,7 +244681,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -236150,26 +244694,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: @@ -236189,7 +244740,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -236244,9 +244795,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -236255,7 +244806,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -236265,7 +244816,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -236275,7 +244826,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -236300,14 +244851,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: @@ -236347,7 +244898,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -236587,7 +245138,7 @@ components: example: downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -236596,7 +245147,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -236609,26 +245160,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: @@ -236655,6 +245213,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: @@ -242756,8 +251316,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. @@ -243767,12 +252325,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 @@ -243879,12 +252437,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 @@ -243944,12 +252502,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 @@ -243988,12 +252546,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 @@ -245947,9 +254505,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 @@ -245960,6 +254520,7 @@ components: - ips - ips pool: pool + shareID: shareID conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -246004,21 +254565,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: @@ -246040,34 +254606,50 @@ 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: {} 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: {} device: device + bindingConditions: + - bindingConditions + - bindingConditions nodeSelector: nodeSelectorTerms: - matchExpressions: @@ -246115,142 +254697,19 @@ components: key: key operator: operator properties: - devices: - $ref: '#/components/schemas/v1alpha3.DeviceAllocationResult' - nodeSelector: - $ref: '#/components/schemas/v1.NodeSelector' - type: object - v1alpha3.BasicDevice: - description: BasicDevice defines one device instance. - example: - nodeName: nodeName - consumesCounters: - - counters: - key: - value: value - counterSet: counterSet - - counters: - key: - value: value - counterSet: counterSet - attributes: - key: - bool: true - string: string - version: version - int: 0 - taints: - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - allNodes: true - capacity: {} - nodeSelector: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - properties: - allNodes: - description: |- - AllNodes indicates that all nodes have access to the device. - - Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. - type: boolean - attributes: - additionalProperties: - $ref: '#/components/schemas/v1alpha3.DeviceAttribute' + allocationTimestamp: description: |- - Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. + AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. - The maximum number of attributes and capacities combined is 32. - type: object - capacity: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: |- - Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. - - The maximum number of attributes and capacities combined is 32. - type: object - consumesCounters: - description: |- - ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. - - There can only be a single entry per counterSet. - - The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). - items: - $ref: '#/components/schemas/v1alpha3.DeviceCounterConsumption' - type: array - x-kubernetes-list-type: atomic - nodeName: - description: |- - NodeName identifies the node where the device is available. - - Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + format: date-time type: string + devices: + $ref: '#/components/schemas/v1.DeviceAllocationResult' nodeSelector: $ref: '#/components/schemas/v1.NodeSelector' - taints: - description: |- - If specified, these are the driver-defined taints. - - The maximum number of taints is 4. - - This is an alpha field and requires enabling the DRADeviceTaints feature gate. - items: - $ref: '#/components/schemas/v1alpha3.DeviceTaint' - type: array - x-kubernetes-list-type: atomic type: object - v1alpha3.CELDeviceSelector: + v1.CELDeviceSelector: description: CELDeviceSelector contains a CEL expression for selecting a device. example: expression: expression @@ -246265,6 +254724,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: @@ -246290,7 +254751,233 @@ components: required: - expression type: object - v1alpha3.Counter: + 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: {} + 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 @@ -246336,7 +255023,7 @@ components: required: - value 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. @@ -246349,113 +255036,217 @@ components: properties: counters: additionalProperties: - $ref: '#/components/schemas/v1alpha3.Counter' + $ref: '#/components/schemas/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. - - 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. + Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. - The maximum number of counters is 32. + The 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 required: - counters - name 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. example: - 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 + 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: {} - 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 properties: - basic: - $ref: '#/components/schemas/v1alpha3.BasicDevice' + allNodes: + description: |- + AllNodes indicates that all nodes have access to the device. + + Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + type: boolean + allowMultipleAllocations: + description: |- + AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. + + If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. + type: boolean + attributes: + additionalProperties: + $ref: '#/components/schemas/v1.DeviceAttribute' + description: |- + Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. + + The maximum number of attributes and capacities combined is 32. + type: object + bindingConditions: + description: |- + BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. + + The maximum number of binding conditions is 4. + + The conditions must be a valid condition type string. + + This is 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/v1.DeviceCapacity' + description: |- + Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. + + The maximum number of attributes and capacities combined is 32. + type: object + consumesCounters: + description: |- + ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. + + There can only be a single entry per counterSet. + + The 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/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. + + Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + type: string + nodeSelector: + $ref: '#/components/schemas/v1.NodeSelector' + taints: + description: |- + If specified, these are the driver-defined taints. + + The maximum number of taints is 4. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: '#/components/schemas/v1.DeviceTaint' + type: array + x-kubernetes-list-type: atomic required: - name type: object - v1alpha3.DeviceAllocationConfiguration: + v1.DeviceAllocationConfiguration: description: DeviceAllocationConfiguration gets embedded in an AllocationResult. example: opaque: @@ -246467,7 +255258,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. @@ -246485,7 +255276,7 @@ components: required: - source type: object - v1alpha3.DeviceAllocationResult: + v1.DeviceAllocationResult: description: DeviceAllocationResult is the result of allocating devices. example: config: @@ -246508,34 +255299,50 @@ 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: {} 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: {} device: device + bindingConditions: + - bindingConditions + - bindingConditions properties: config: description: |- @@ -246543,17 +255350,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 @@ -246576,134 +255383,205 @@ 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: {} - 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: {} 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: {} + - 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: {} - 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: {} 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: {} config: - opaque: driver: driver @@ -246718,11 +255596,13 @@ components: - requests - requests constraints: - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests - - matchAttribute: matchAttribute + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute requests: - requests - requests @@ -246732,25 +255612,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: @@ -246762,7 +255642,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. @@ -246773,7 +255653,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. @@ -246828,6 +255708,7 @@ components: apiVersion: apiVersion kind: kind spec: + extendedResourceName: extendedResourceName selectors: - cel: expression: expression @@ -246854,17 +255735,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: @@ -246872,9 +255753,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: @@ -246934,6 +255815,7 @@ components: apiVersion: apiVersion kind: kind spec: + extendedResourceName: extendedResourceName selectors: - cel: expression: expression @@ -246995,6 +255877,7 @@ components: apiVersion: apiVersion kind: kind spec: + extendedResourceName: extendedResourceName selectors: - cel: expression: expression @@ -247016,7 +255899,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 @@ -247031,13 +255914,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 @@ -247057,25 +255941,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. @@ -247094,7 +255995,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: @@ -247104,14 +256005,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 @@ -247119,163 +256020,105 @@ 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. + 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: {} - 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: {} 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: {} 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: @@ -247283,18 +256126,26 @@ 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: {} device: device + bindingConditions: + - bindingConditions + - bindingConditions properties: adminAccess: description: |- @@ -247302,6 +256153,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. @@ -247324,6 +256203,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. @@ -247332,7 +256217,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: @@ -247341,58 +256226,62 @@ 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: {} 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 field is @@ -247415,10 +256304,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: @@ -247433,14 +256322,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. @@ -247472,441 +256361,204 @@ 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: - description: The ResourceClaim this DeviceToleration is attached to tolerates - any taint that matches the triple using the matching operator - . - example: - effect: effect - tolerationSeconds: 1 - value: value - key: key - operator: operator - properties: - effect: - description: Effect indicates the taint effect to match. Empty means match - all taint effects. When specified, allowed values are NoSchedule and NoExecute. - type: string - key: - description: Key is the taint key that the toleration applies to. Empty - means match all taint keys. If the key is empty, operator must be Exists; - this combination means to match all values and all keys. Must be a label - name. - type: string - operator: - description: Operator represents a key's relationship to the value. Valid - operators are Exists and Equal. Defaults to Equal. Exists is equivalent - to wildcard for value, so that a ResourceClaim can tolerate all taints - of a particular category. - type: string - tolerationSeconds: - description: TolerationSeconds represents the period of time the toleration - (which must be of effect NoExecute, otherwise this field is ignored) tolerates - the taint. By default, it is not set, which means tolerate the taint forever - (do not evict). Zero and negative values will be treated as 0 (evict immediately) - by the system. If larger than zero, the time when the pod needs to be - evicted is calculated as -# **createValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation) + +# **createMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy createMutatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation) -create a ValidatingAdmissionPolicy +create a MutatingAdmissionPolicy ### Example ```java @@ -54,16 +51,16 @@ 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, pretty, dryRun, fieldManager, fieldValidation); + V1beta1MutatingAdmissionPolicy result = apiInstance.createMutatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation); 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()); @@ -77,7 +74,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] @@ -85,7 +82,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md) +[**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.md) ### Authorization @@ -104,13 +101,13 @@ Name | Type | Description | Notes **202** | Accepted | - | **401** | Unauthorized | - | - -# **createValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation) + +# **createMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding createMutatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation) -create a ValidatingAdmissionPolicyBinding +create a MutatingAdmissionPolicyBinding ### Example ```java @@ -134,16 +131,16 @@ 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, pretty, dryRun, fieldManager, fieldValidation); + V1beta1MutatingAdmissionPolicyBinding result = apiInstance.createMutatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation); 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()); @@ -157,7 +154,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] @@ -165,7 +162,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md) +[**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -184,13 +181,13 @@ Name | Type | Description | Notes **202** | Accepted | - | **401** | Unauthorized | - | - -# **deleteCollectionValidatingAdmissionPolicy** -> V1Status deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + +# **deleteCollectionMutatingAdmissionPolicy** +> V1Status deleteCollectionMutatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) -delete collection of ValidatingAdmissionPolicy +delete collection of MutatingAdmissionPolicy ### Example ```java @@ -230,10 +227,10 @@ 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(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionMutatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); 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()); @@ -282,13 +279,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **deleteCollectionValidatingAdmissionPolicyBinding** -> V1Status deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + +# **deleteCollectionMutatingAdmissionPolicyBinding** +> V1Status deleteCollectionMutatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) -delete collection of ValidatingAdmissionPolicyBinding +delete collection of MutatingAdmissionPolicyBinding ### Example ```java @@ -328,10 +325,10 @@ 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(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + V1Status result = apiInstance.deleteCollectionMutatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); 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()); @@ -380,13 +377,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **deleteValidatingAdmissionPolicy** -> V1Status deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + +# **deleteMutatingAdmissionPolicy** +> V1Status deleteMutatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) -delete a ValidatingAdmissionPolicy +delete a MutatingAdmissionPolicy ### Example ```java @@ -410,7 +407,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. @@ -419,10 +416,10 @@ 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, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteMutatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); 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()); @@ -436,7 +433,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] @@ -465,13 +462,13 @@ Name | Type | Description | Notes **202** | Accepted | - | **401** | Unauthorized | - | - -# **deleteValidatingAdmissionPolicyBinding** -> V1Status deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + +# **deleteMutatingAdmissionPolicyBinding** +> V1Status deleteMutatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) -delete a ValidatingAdmissionPolicyBinding +delete a MutatingAdmissionPolicyBinding ### Example ```java @@ -495,7 +492,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. @@ -504,10 +501,10 @@ 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, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteMutatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); 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()); @@ -521,7 +518,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] @@ -616,13 +613,13 @@ This endpoint does not need any parameter. **200** | OK | - | **401** | Unauthorized | - | - -# **listValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + +# **listMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicyList listMutatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) -list or watch objects of kind ValidatingAdmissionPolicy +list or watch objects of kind MutatingAdmissionPolicy ### Example ```java @@ -658,10 +655,10 @@ 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(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1beta1MutatingAdmissionPolicyList result = apiInstance.listMutatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); 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()); @@ -689,7 +686,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ValidatingAdmissionPolicyList**](V1beta1ValidatingAdmissionPolicyList.md) +[**V1beta1MutatingAdmissionPolicyList**](V1beta1MutatingAdmissionPolicyList.md) ### Authorization @@ -706,13 +703,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **listValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + +# **listMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBindingList listMutatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) -list or watch objects of kind ValidatingAdmissionPolicyBinding +list or watch objects of kind MutatingAdmissionPolicyBinding ### Example ```java @@ -748,10 +745,10 @@ 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(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1beta1MutatingAdmissionPolicyBindingList result = apiInstance.listMutatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); 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()); @@ -779,7 +776,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ValidatingAdmissionPolicyBindingList**](V1beta1ValidatingAdmissionPolicyBindingList.md) +[**V1beta1MutatingAdmissionPolicyBindingList**](V1beta1MutatingAdmissionPolicyBindingList.md) ### Authorization @@ -796,13 +793,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + +# **patchMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy patchMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force) -partially update the specified ValidatingAdmissionPolicy +partially update the specified MutatingAdmissionPolicy ### Example ```java @@ -826,7 +823,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 @@ -834,10 +831,10 @@ 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, pretty, dryRun, fieldManager, fieldValidation, force); + V1beta1MutatingAdmissionPolicy result = apiInstance.patchMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force); 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()); @@ -851,7 +848,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] @@ -861,7 +858,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md) +[**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.md) ### Authorization @@ -879,13 +876,13 @@ Name | Type | Description | Notes **201** | Created | - | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + +# **patchMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding patchMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force) -partially update the specified ValidatingAdmissionPolicyBinding +partially update the specified MutatingAdmissionPolicyBinding ### 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 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 @@ -917,10 +914,10 @@ 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, pretty, dryRun, fieldManager, fieldValidation, force); + V1beta1MutatingAdmissionPolicyBinding result = apiInstance.patchMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force); 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()); @@ -934,7 +931,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] @@ -944,7 +941,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md) +[**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -962,13 +959,13 @@ Name | Type | Description | Notes **201** | Created | - | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + +# **readMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy readMutatingAdmissionPolicy(name, pretty) -partially update status of the specified ValidatingAdmissionPolicy +read the specified MutatingAdmissionPolicy ### Example ```java @@ -992,96 +989,13 @@ 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, dryRun, fieldManager, fieldValidation, force); - 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) - - - -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 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 { - V1beta1ValidatingAdmissionPolicy result = apiInstance.readValidatingAdmissionPolicy(name, pretty); + V1beta1MutatingAdmissionPolicy result = apiInstance.readMutatingAdmissionPolicy(name, pretty); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readValidatingAdmissionPolicy"); + 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()); @@ -1095,12 +1009,12 @@ 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] ### Return type -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md) +[**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.md) ### Authorization @@ -1117,13 +1031,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **readValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBinding(name, pretty) + +# **readMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding readMutatingAdmissionPolicyBinding(name, pretty) -read the specified ValidatingAdmissionPolicyBinding +read the specified MutatingAdmissionPolicyBinding ### Example ```java @@ -1147,13 +1061,13 @@ 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). try { - V1beta1ValidatingAdmissionPolicyBinding result = apiInstance.readValidatingAdmissionPolicyBinding(name, pretty); + V1beta1MutatingAdmissionPolicyBinding result = apiInstance.readMutatingAdmissionPolicyBinding(name, pretty); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readValidatingAdmissionPolicyBinding"); + 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()); @@ -1167,12 +1081,12 @@ 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] ### Return type -[**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md) +[**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -1189,166 +1103,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **readValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy readValidatingAdmissionPolicyStatus(name, pretty) - - - -read status of 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.readValidatingAdmissionPolicyStatus(name, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readValidatingAdmissionPolicyStatus"); - 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 | - | - - -# **replaceValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation) - - - -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, dryRun, fieldManager, fieldValidation); - 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, dryRun, fieldManager, fieldValidation) + +# **replaceMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy replaceMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation) -replace the specified ValidatingAdmissionPolicyBinding +replace the specified MutatingAdmissionPolicy ### Example ```java @@ -1372,17 +1133,17 @@ 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, pretty, dryRun, fieldManager, fieldValidation); + V1beta1MutatingAdmissionPolicy result = apiInstance.replaceMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation); 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()); @@ -1396,8 +1157,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] @@ -1405,7 +1166,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md) +[**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.md) ### Authorization @@ -1423,13 +1184,13 @@ Name | Type | Description | Notes **201** | Created | - | **401** | Unauthorized | - | - -# **replaceValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation) + +# **replaceMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding replaceMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation) -replace status of the specified ValidatingAdmissionPolicy +replace the specified MutatingAdmissionPolicyBinding ### Example ```java @@ -1453,17 +1214,17 @@ 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, pretty, dryRun, fieldManager, fieldValidation); + V1beta1MutatingAdmissionPolicyBinding result = apiInstance.replaceMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation); 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()); @@ -1477,8 +1238,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] @@ -1486,7 +1247,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md) +[**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.md) ### Authorization diff --git a/kubernetes/docs/CertificatesV1alpha1Api.md b/kubernetes/docs/CertificatesV1alpha1Api.md index 70caf2e25c..8a03297e34 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 | @@ -94,6 +105,88 @@ Name | Type | Description | Notes **202** | Accepted | - | **401** | Unauthorized | - | + +# **createNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest createNamespacedPodCertificateRequest(namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +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, dryRun, fieldManager, fieldValidation); + 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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -277,13 +370,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **getAPIResources** -> V1APIResourceList getAPIResources() + +# **deleteCollectionNamespacedPodCertificateRequest** +> V1Status deleteCollectionNamespacedPodCertificateRequest(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) -get available resources +delete collection of PodCertificateRequest ### Example ```java @@ -307,11 +400,27 @@ public class Example { //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 { - V1APIResourceList result = apiInstance.getAPIResources(); + V1Status result = apiInstance.deleteCollectionNamespacedPodCertificateRequest(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#getAPIResources"); + 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()); @@ -322,11 +431,29 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +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 -[**V1APIResourceList**](V1APIResourceList.md) +[**V1Status**](V1Status.md) ### Authorization @@ -334,7 +461,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details @@ -343,13 +470,13 @@ This endpoint does not need any parameter. **200** | OK | - | **401** | Unauthorized | - | - -# **listClusterTrustBundle** -> V1alpha1ClusterTrustBundleList listClusterTrustBundle(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + +# **deleteNamespacedPodCertificateRequest** +> V1Status deleteNamespacedPodCertificateRequest(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) -list or watch objects of kind ClusterTrustBundle +delete a PodCertificateRequest ### Example ```java @@ -373,22 +500,20 @@ 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. + 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 { - V1alpha1ClusterTrustBundleList result = apiInstance.listClusterTrustBundle(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1Status result = apiInstance.deleteNamespacedPodCertificateRequest(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#listClusterTrustBundle"); + 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()); @@ -402,21 +527,19 @@ 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] + **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 -[**V1alpha1ClusterTrustBundleList**](V1alpha1ClusterTrustBundleList.md) +[**V1Status**](V1Status.md) ### Authorization @@ -424,22 +547,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**202** | Accepted | - | **401** | Unauthorized | - | - -# **patchClusterTrustBundle** -> V1alpha1ClusterTrustBundle patchClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + +# **getAPIResources** +> V1APIResourceList getAPIResources() -partially update the specified ClusterTrustBundle +get available resources ### Example ```java @@ -463,18 +587,11 @@ public class Example { //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, dryRun, fieldManager, fieldValidation, force); + V1APIResourceList result = apiInstance.getAPIResources(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#patchClusterTrustBundle"); + 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()); @@ -485,20 +602,11 @@ public class Example { ``` ### 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] +This endpoint does not need any parameter. ### Return type -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md) +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization @@ -506,23 +614,22 @@ Name | Type | Description | Notes ### 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 | - | - -# **readClusterTrustBundle** -> V1alpha1ClusterTrustBundle readClusterTrustBundle(name, pretty) + +# **listClusterTrustBundle** +> V1alpha1ClusterTrustBundleList listClusterTrustBundle(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) -read the specified ClusterTrustBundle +list or watch objects of kind ClusterTrustBundle ### Example ```java @@ -546,13 +653,22 @@ 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). + 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 { - V1alpha1ClusterTrustBundle result = apiInstance.readClusterTrustBundle(name, pretty); + V1alpha1ClusterTrustBundleList result = apiInstance.listClusterTrustBundle(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#readClusterTrustBundle"); + 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()); @@ -566,12 +682,21 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterTrustBundle | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + **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 -[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md) +[**V1alpha1ClusterTrustBundleList**](V1alpha1ClusterTrustBundleList.md) ### Authorization @@ -580,7 +705,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | @@ -588,13 +713,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **replaceClusterTrustBundle** -> V1alpha1ClusterTrustBundle replaceClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation) + +# **listNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequestList listNamespacedPodCertificateRequest(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) -replace the specified ClusterTrustBundle +list or watch objects of kind PodCertificateRequest ### Example ```java @@ -618,17 +743,23 @@ 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 namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - 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 { - V1alpha1ClusterTrustBundle result = apiInstance.replaceClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation); + V1alpha1PodCertificateRequestList result = apiInstance.listNamespacedPodCertificateRequest(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1alpha1Api#replaceClusterTrustBundle"); + 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()); @@ -642,8 +773,657 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the ClusterTrustBundle | - **body** | [**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.md)| | + **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, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +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, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + 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, dryRun, fieldManager, fieldValidation, force) + + + +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, dryRun, fieldManager, fieldValidation, force); + 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, dryRun, fieldManager, fieldValidation, force) + + + +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, dryRun, fieldManager, fieldValidation, force); + 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, dryRun, fieldManager, fieldValidation, force) + + + +partially update status of the specified PodCertificateRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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.patchNamespacedPodCertificateRequestStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + System.out.println(result); + } catch (ApiException e) { + 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()); + 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 | - | + + +# **readClusterTrustBundle** +> V1alpha1ClusterTrustBundle readClusterTrustBundle(name, pretty) + + + +read the specified ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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). + try { + V1alpha1ClusterTrustBundle result = apiInstance.readClusterTrustBundle(name, pretty); + System.out.println(result); + } catch (ApiException e) { + 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()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ClusterTrustBundle | + **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] + +### Return type + +[**V1alpha1ClusterTrustBundle**](V1alpha1ClusterTrustBundle.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 | - | + + +# **readNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest readNamespacedPodCertificateRequest(name, namespace, pretty) + + + +read 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 + String pretty = "pretty_example"; // String | If 'true', 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 { + V1alpha1PodCertificateRequest result = apiInstance.readNamespacedPodCertificateRequest(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + 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()); + 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] + +### Return type + +[**V1alpha1PodCertificateRequest**](V1alpha1PodCertificateRequest.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 | - | + + +# **readNamespacedPodCertificateRequestStatus** +> V1alpha1PodCertificateRequest readNamespacedPodCertificateRequestStatus(name, namespace, pretty) + + + +read status of the specified PodCertificateRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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). + try { + V1alpha1PodCertificateRequest result = apiInstance.readNamespacedPodCertificateRequestStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + 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()); + 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] + +### Return type + +[**V1alpha1PodCertificateRequest**](V1alpha1PodCertificateRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + + +# **replaceClusterTrustBundle** +> V1alpha1ClusterTrustBundle replaceClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace the specified ClusterTrustBundle + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 + 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. + 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, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + 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()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ClusterTrustBundle | + **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. | [optional] @@ -669,3 +1449,169 @@ Name | Type | Description | Notes **201** | Created | - | **401** | Unauthorized | - | + +# **replaceNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest replaceNamespacedPodCertificateRequest(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace 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 + 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.replaceNamespacedPodCertificateRequest(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + 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()); + 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** | [**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 | - | +**401** | Unauthorized | - | + + +# **replaceNamespacedPodCertificateRequestStatus** +> V1alpha1PodCertificateRequest replaceNamespacedPodCertificateRequestStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + + + +replace status of the specified PodCertificateRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.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 + 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.replaceNamespacedPodCertificateRequestStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + System.out.println(result); + } catch (ApiException e) { + 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()); + 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** | [**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 | - | +**401** | Unauthorized | - | + 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 60bd6eda01..31ab11ec1f 100644 --- a/kubernetes/docs/V1ResourceClaim.md +++ b/kubernetes/docs/CoreV1ResourceClaim.md @@ -1,6 +1,6 @@ -# V1ResourceClaim +# CoreV1ResourceClaim ResourceClaim references one entry in PodSpec.ResourceClaims. ## Properties diff --git a/kubernetes/docs/ResourceV1Api.md b/kubernetes/docs/ResourceV1Api.md new file mode 100644 index 0000000000..f011eb54a0 --- /dev/null +++ b/kubernetes/docs/ResourceV1Api.md @@ -0,0 +1,2914 @@ +# 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, dryRun, fieldManager, fieldValidation) + + + +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, dryRun, fieldManager, fieldValidation); + 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, dryRun, fieldManager, fieldValidation) + + + +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, dryRun, fieldManager, fieldValidation); + 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, dryRun, fieldManager, fieldValidation) + + + +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, dryRun, fieldManager, fieldValidation); + 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, dryRun, fieldManager, fieldValidation) + + + +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, dryRun, fieldManager, fieldValidation); + 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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + 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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + 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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + 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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + 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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + 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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + 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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + 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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + 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() + + + +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(); + 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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + 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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + 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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + 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, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +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, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + 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, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +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, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + 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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + 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, dryRun, fieldManager, fieldValidation, force) + + + +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, dryRun, fieldManager, fieldValidation, force); + 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, dryRun, fieldManager, fieldValidation, force) + + + +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, dryRun, fieldManager, fieldValidation, force); + 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, dryRun, fieldManager, fieldValidation, force) + + + +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, dryRun, fieldManager, fieldValidation, force); + 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, dryRun, fieldManager, fieldValidation, force) + + + +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, dryRun, fieldManager, fieldValidation, force); + 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, dryRun, fieldManager, fieldValidation, force) + + + +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, dryRun, fieldManager, fieldValidation, force); + 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) + + + +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); + 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) + + + +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); + 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) + + + +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); + 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) + + + +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); + 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) + + + +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); + 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, dryRun, fieldManager, fieldValidation) + + + +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, dryRun, fieldManager, fieldValidation); + 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, dryRun, fieldManager, fieldValidation) + + + +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, dryRun, fieldManager, fieldValidation); + 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, dryRun, fieldManager, fieldValidation) + + + +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, dryRun, fieldManager, fieldValidation); + 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, dryRun, fieldManager, fieldValidation) + + + +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, dryRun, fieldManager, fieldValidation); + 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, dryRun, fieldManager, fieldValidation) + + + +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, dryRun, fieldManager, fieldValidation); + 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 87% rename from kubernetes/docs/V1alpha3ResourceClaim.md rename to kubernetes/docs/ResourceV1ResourceClaim.md index cedd82895c..bc639c6bb4 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. ## Properties @@ -10,8 +10,8 @@ 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** | [**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 263ffeeb7d..21620d4224 100644 --- a/kubernetes/docs/ResourceV1alpha3Api.md +++ b/kubernetes/docs/ResourceV1alpha3Api.md @@ -4,2879 +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, dryRun, fieldManager, fieldValidation) - - - -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, dryRun, fieldManager, fieldValidation); - 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, dryRun, fieldManager, fieldValidation) - - - -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, dryRun, fieldManager, fieldValidation); - 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, dryRun, fieldManager, fieldValidation) - - - -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, dryRun, fieldManager, fieldValidation); - 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, dryRun, fieldManager, fieldValidation) - - - -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, dryRun, fieldManager, fieldValidation); - 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, dryRun, fieldManager, fieldValidation) - - - -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, dryRun, fieldManager, fieldValidation); - 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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) - - - -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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - 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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) - - - -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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - 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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) - - - -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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - 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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) - - - -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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - 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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) - - - -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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - 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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) - - - -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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - 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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) - - - -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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - 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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) - - - -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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - 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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) - - - -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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - 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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) - - - -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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - 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() - - - -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(); - 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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - 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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - 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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - 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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - 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, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -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, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - 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, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -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, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - 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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) - - - -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, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - 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, dryRun, fieldManager, fieldValidation, force) - - - -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, dryRun, fieldManager, fieldValidation, force); - 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, dryRun, fieldManager, fieldValidation, force) - - - -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, dryRun, fieldManager, fieldValidation, force); - 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, dryRun, fieldManager, fieldValidation, force) - - - -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, dryRun, fieldManager, fieldValidation, force); - 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, dryRun, fieldManager, fieldValidation, force) - - - -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, dryRun, fieldManager, fieldValidation, force); - 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, dryRun, fieldManager, fieldValidation, force) - - - -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, dryRun, fieldManager, fieldValidation, force); - 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, dryRun, fieldManager, fieldValidation, force) - - - -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, dryRun, fieldManager, fieldValidation, force); - 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) - - - -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); - 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) - - - -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); - 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) - - - -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); - 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) - - - -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); - 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) + +# **createDeviceTaintRule** +> V1alpha3DeviceTaintRule createDeviceTaintRule(body, pretty, dryRun, fieldManager, fieldValidation) -read the specified ResourceClaimTemplate +create a DeviceTaintRule ### Example ```java @@ -2900,14 +44,16 @@ 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, pretty); + V1alpha3DeviceTaintRule result = apiInstance.createDeviceTaintRule(body, pretty, dryRun, fieldManager, fieldValidation); 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()); @@ -2921,13 +67,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 @@ -2935,22 +83,24 @@ Name | Type | Description | Notes ### 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) + +# **deleteCollectionDeviceTaintRule** +> V1Status deleteCollectionDeviceTaintRule(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) -read the specified ResourceSlice +delete collection of DeviceTaintRule ### Example ```java @@ -2974,13 +124,26 @@ 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, pretty); + V1Status result = apiInstance.deleteCollectionDeviceTaintRule(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); 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()); @@ -2994,12 +157,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 @@ -3007,7 +183,7 @@ Name | Type | Description | Notes ### 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 @@ -3016,13 +192,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **replaceDeviceClass** -> V1alpha3DeviceClass replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation) + +# **deleteDeviceTaintRule** +> V1alpha3DeviceTaintRule deleteDeviceTaintRule(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) -replace the specified DeviceClass +delete a DeviceTaintRule ### Example ```java @@ -3046,17 +222,19 @@ 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, pretty, dryRun, fieldManager, fieldValidation); + V1alpha3DeviceTaintRule result = apiInstance.deleteDeviceTaintRule(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); 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()); @@ -3070,16 +248,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 @@ -3094,16 +274,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | +**202** | Accepted | - | **401** | Unauthorized | - | - -# **replaceDeviceTaintRule** -> V1alpha3DeviceTaintRule replaceDeviceTaintRule(name, body, pretty, dryRun, fieldManager, fieldValidation) + +# **getAPIResources** +> V1APIResourceList getAPIResources() -replace the specified DeviceTaintRule +get available resources ### Example ```java @@ -3127,17 +307,11 @@ 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, dryRun, fieldManager, fieldValidation); + V1APIResourceList result = apiInstance.getAPIResources(); 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()); @@ -3148,19 +322,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 @@ -3168,23 +334,22 @@ Name | Type | Description | Notes ### 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, dryRun, fieldManager, fieldValidation) + +# **listDeviceTaintRule** +> V1alpha3DeviceTaintRuleList listDeviceTaintRule(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) -replace the specified ResourceClaim +list or watch objects of kind DeviceTaintRule ### Example ```java @@ -3208,18 +373,22 @@ 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, pretty, dryRun, fieldManager, fieldValidation); + V1alpha3DeviceTaintRuleList result = apiInstance.listDeviceTaintRule(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); 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()); @@ -3233,17 +402,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 @@ -3251,23 +424,22 @@ Name | Type | Description | Notes ### 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, dryRun, fieldManager, fieldValidation) + +# **patchDeviceTaintRule** +> V1alpha3DeviceTaintRule patchDeviceTaintRule(name, body, pretty, dryRun, fieldManager, fieldValidation, force) -replace status of the specified ResourceClaim +partially update the specified DeviceTaintRule ### Example ```java @@ -3291,18 +463,18 @@ 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, pretty, dryRun, fieldManager, fieldValidation); + V1alpha3DeviceTaintRule result = apiInstance.patchDeviceTaintRule(name, body, pretty, dryRun, fieldManager, fieldValidation, force); 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()); @@ -3316,17 +488,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 @@ -3344,13 +516,13 @@ Name | Type | Description | Notes **201** | Created | - | **401** | Unauthorized | - | - -# **replaceNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) + +# **readDeviceTaintRule** +> V1alpha3DeviceTaintRule readDeviceTaintRule(name, pretty) -replace the specified ResourceClaimTemplate +read the specified DeviceTaintRule ### Example ```java @@ -3374,18 +546,13 @@ 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, pretty, dryRun, fieldManager, fieldValidation); + V1alpha3DeviceTaintRule result = apiInstance.readDeviceTaintRule(name, pretty); 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()); @@ -3399,17 +566,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 @@ -3417,23 +579,22 @@ Name | Type | Description | Notes ### 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, dryRun, fieldManager, fieldValidation) + +# **replaceDeviceTaintRule** +> V1alpha3DeviceTaintRule replaceDeviceTaintRule(name, body, pretty, dryRun, fieldManager, fieldValidation) -replace the specified ResourceSlice +replace the specified DeviceTaintRule ### Example ```java @@ -3457,17 +618,17 @@ 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, pretty, dryRun, fieldManager, fieldValidation); + V1alpha3DeviceTaintRule result = apiInstance.replaceDeviceTaintRule(name, body, pretty, dryRun, fieldManager, fieldValidation); 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()); @@ -3481,8 +642,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] @@ -3490,7 +651,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha3ResourceSlice**](V1alpha3ResourceSlice.md) +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) ### Authorization diff --git a/kubernetes/docs/StorageV1Api.md b/kubernetes/docs/StorageV1Api.md index b230811ba9..73af945095 100644 --- a/kubernetes/docs/StorageV1Api.md +++ b/kubernetes/docs/StorageV1Api.md @@ -9,6 +9,7 @@ Method | HTTP request | Description [**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 @@ Method | HTTP request | Description [**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 @@ Method | HTTP request | Description [**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} | @@ -448,6 +455,86 @@ Name | Type | Description | Notes **202** | Accepted | - | **401** | Unauthorized | - | + +# **createVolumeAttributesClass** +> V1VolumeAttributesClass createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation) + + + +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, dryRun, fieldManager, fieldValidation); + 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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -1110,6 +1197,104 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | + +# **deleteCollectionVolumeAttributesClass** +> V1Status deleteCollectionVolumeAttributesClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body) + + + +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, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + 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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) @@ -1367,6 +1552,91 @@ Name | Type | Description | Notes **202** | Accepted | - | **401** | Unauthorized | - | + +# **deleteVolumeAttributesClass** +> V1VolumeAttributesClass deleteVolumeAttributesClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body) + + + +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, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + 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() @@ -1648,17 +1918,108 @@ public class Example { 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 pretty = "pretty_example"; // String | If 'true', 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 { + V1CSIStorageCapacityList result = apiInstance.listCSIStorageCapacityForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#listCSIStorageCapacityForAllNamespaces"); + 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 + +[**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 | - | + + +# **listNamespacedCSIStorageCapacity** +> V1CSIStorageCapacityList listNamespacedCSIStorageCapacity(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + + + +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.listCSIStorageCapacityForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1CSIStorageCapacityList result = apiInstance.listNamespacedCSIStorageCapacity(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#listCSIStorageCapacityForAllNamespaces"); + 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()); @@ -1672,12 +2033,13 @@ 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] **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] @@ -1703,13 +2065,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **listNamespacedCSIStorageCapacity** -> V1CSIStorageCapacityList listNamespacedCSIStorageCapacity(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + +# **listStorageClass** +> V1StorageClassList listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) -list or watch objects of kind CSIStorageCapacity +list or watch objects of kind StorageClass ### Example ```java @@ -1733,7 +2095,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. @@ -1746,10 +2107,10 @@ 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, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1StorageClassList result = apiInstance.listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); 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()); @@ -1763,7 +2124,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] @@ -1778,7 +2138,7 @@ Name | Type | Description | Notes ### Return type -[**V1CSIStorageCapacityList**](V1CSIStorageCapacityList.md) +[**V1StorageClassList**](V1StorageClassList.md) ### Authorization @@ -1795,13 +2155,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **listStorageClass** -> V1StorageClassList listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + +# **listVolumeAttachment** +> V1VolumeAttachmentList listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) -list or watch objects of kind StorageClass +list or watch objects of kind VolumeAttachment ### Example ```java @@ -1837,10 +2197,10 @@ 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(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1VolumeAttachmentList result = apiInstance.listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); 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()); @@ -1868,7 +2228,7 @@ Name | Type | Description | Notes ### Return type -[**V1StorageClassList**](V1StorageClassList.md) +[**V1VolumeAttachmentList**](V1VolumeAttachmentList.md) ### Authorization @@ -1885,13 +2245,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **listVolumeAttachment** -> V1VolumeAttachmentList listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) + +# **listVolumeAttributesClass** +> V1VolumeAttributesClassList listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch) -list or watch objects of kind VolumeAttachment +list or watch objects of kind VolumeAttributesClass ### Example ```java @@ -1927,10 +2287,10 @@ 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(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + V1VolumeAttributesClassList result = apiInstance.listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); 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()); @@ -1958,7 +2318,7 @@ Name | Type | Description | Notes ### Return type -[**V1VolumeAttachmentList**](V1VolumeAttachmentList.md) +[**V1VolumeAttributesClassList**](V1VolumeAttributesClassList.md) ### Authorization @@ -2475,6 +2835,89 @@ Name | Type | Description | Notes **201** | Created | - | **401** | Unauthorized | - | + +# **patchVolumeAttributesClass** +> V1VolumeAttributesClass patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + + + +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, dryRun, fieldManager, fieldValidation, force); + 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) @@ -2909,6 +3352,78 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | + +# **readVolumeAttributesClass** +> V1VolumeAttributesClass readVolumeAttributesClass(name, pretty) + + + +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); + 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, dryRun, fieldManager, fieldValidation) @@ -3397,3 +3912,84 @@ Name | Type | Description | Notes **201** | Created | - | **401** | Unauthorized | - | + +# **replaceVolumeAttributesClass** +> V1VolumeAttributesClass replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation) + + + +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, dryRun, fieldManager, fieldValidation); + 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 96e446b80a..d873ebfbff 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 Name | Type | Description | Notes @@ -11,8 +11,9 @@ Name | Type | Description | Notes **data** | [**Object**](.md) | 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..62ced0e95d --- /dev/null +++ b/kubernetes/docs/V1AllocationResult.md @@ -0,0 +1,15 @@ + + +# V1AllocationResult + +AllocationResult contains attributes of an allocated resource. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocationTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | 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..e922488566 --- /dev/null +++ b/kubernetes/docs/V1CELDeviceSelector.md @@ -0,0 +1,13 @@ + + +# 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 3e6851cb7d..49009a6dee 100644 --- a/kubernetes/docs/V1CSIDriverSpec.md +++ b/kubernetes/docs/V1CSIDriverSpec.md @@ -7,9 +7,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..ba43cbaec8 --- /dev/null +++ b/kubernetes/docs/V1CapacityRequestPolicy.md @@ -0,0 +1,15 @@ + + +# V1CapacityRequestPolicy + +CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_default** | [**Quantity**](Quantity.md) | 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>**](Quantity.md) | 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..e6a4a93705 --- /dev/null +++ b/kubernetes/docs/V1CapacityRequestPolicyRange.md @@ -0,0 +1,15 @@ + + +# 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.md) | 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.md) | 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.md) | 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..acbdaba5ce --- /dev/null +++ b/kubernetes/docs/V1CapacityRequirements.md @@ -0,0 +1,13 @@ + + +# V1CapacityRequirements + +CapacityRequirements defines the capacity requirements for a specific device request. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requests** | [**Map<String, Quantity>**](Quantity.md) | 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 e0f6773e5a..a457659b56 100644 --- a/kubernetes/docs/V1Container.md +++ b/kubernetes/docs/V1Container.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **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] @@ -20,7 +20,8 @@ Name | Type | Description | Notes **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..59c0a6ce68 --- /dev/null +++ b/kubernetes/docs/V1ContainerExtendedResourceRequest.md @@ -0,0 +1,15 @@ + + +# 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..1f8a987a4d --- /dev/null +++ b/kubernetes/docs/V1ContainerRestartRule.md @@ -0,0 +1,14 @@ + + +# 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..2085ae8c3b --- /dev/null +++ b/kubernetes/docs/V1ContainerRestartRuleOnExitCodes.md @@ -0,0 +1,14 @@ + + +# 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 5aa1a5e03a..ef2da8e76b 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. ## Properties diff --git a/kubernetes/docs/V1CounterSet.md b/kubernetes/docs/V1CounterSet.md new file mode 100644 index 0000000000..dc5ca14273 --- /dev/null +++ b/kubernetes/docs/V1CounterSet.md @@ -0,0 +1,14 @@ + + +# 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..1f9461b0a6 --- /dev/null +++ b/kubernetes/docs/V1Device.md @@ -0,0 +1,24 @@ + + +# 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 2f83e89334..10a9ce9294 100644 --- a/kubernetes/docs/V1alpha3DeviceAllocationConfiguration.md +++ b/kubernetes/docs/V1DeviceAllocationConfiguration.md @@ -1,13 +1,13 @@ -# V1alpha3DeviceAllocationConfiguration +# V1DeviceAllocationConfiguration DeviceAllocationConfiguration gets embedded in an AllocationResult. ## Properties 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..49315f34be --- /dev/null +++ b/kubernetes/docs/V1DeviceAllocationResult.md @@ -0,0 +1,14 @@ + + +# 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 545d1e8e09..56937c03e7 100644 --- a/kubernetes/docs/V1alpha3DeviceAttribute.md +++ b/kubernetes/docs/V1DeviceAttribute.md @@ -1,6 +1,6 @@ -# V1alpha3DeviceAttribute +# V1DeviceAttribute DeviceAttribute must have exactly one field set. ## Properties diff --git a/kubernetes/docs/V1DeviceCapacity.md b/kubernetes/docs/V1DeviceCapacity.md new file mode 100644 index 0000000000..39c45b8000 --- /dev/null +++ b/kubernetes/docs/V1DeviceCapacity.md @@ -0,0 +1,14 @@ + + +# V1DeviceCapacity + +DeviceCapacity describes a quantity associated with a device. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requestPolicy** | [**V1CapacityRequestPolicy**](V1CapacityRequestPolicy.md) | | [optional] +**value** | [**Quantity**](Quantity.md) | 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..794fa328d0 --- /dev/null +++ b/kubernetes/docs/V1DeviceClaim.md @@ -0,0 +1,15 @@ + + +# 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 553183ccfa..bb57994f10 100644 --- a/kubernetes/docs/V1alpha3DeviceClaimConfiguration.md +++ b/kubernetes/docs/V1DeviceClaimConfiguration.md @@ -1,13 +1,13 @@ -# V1alpha3DeviceClaimConfiguration +# V1DeviceClaimConfiguration DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. ## Properties 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 8e0b550664..4f8fbebc5a 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. ## Properties @@ -10,7 +10,7 @@ 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** | [**V1alpha3DeviceClassSpec**](V1alpha3DeviceClassSpec.md) | | +**spec** | [**V1DeviceClassSpec**](V1DeviceClassSpec.md) | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha3DeviceClassConfiguration.md b/kubernetes/docs/V1DeviceClassConfiguration.md similarity index 53% rename from kubernetes/docs/V1alpha3DeviceClassConfiguration.md rename to kubernetes/docs/V1DeviceClassConfiguration.md index 17700df7ce..a7772b961d 100644 --- a/kubernetes/docs/V1alpha3DeviceClassConfiguration.md +++ b/kubernetes/docs/V1DeviceClassConfiguration.md @@ -1,13 +1,13 @@ -# V1alpha3DeviceClassConfiguration +# V1DeviceClassConfiguration DeviceClassConfiguration is used in DeviceClass. ## Properties 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 87% rename from kubernetes/docs/V1alpha3DeviceClassList.md rename to kubernetes/docs/V1DeviceClassList.md index 07dc4db8f3..1dd9ca297e 100644 --- a/kubernetes/docs/V1alpha3DeviceClassList.md +++ b/kubernetes/docs/V1DeviceClassList.md @@ -1,6 +1,6 @@ -# V1alpha3DeviceClassList +# V1DeviceClassList DeviceClassList is a collection of classes. ## Properties @@ -8,7 +8,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..b61df218d8 --- /dev/null +++ b/kubernetes/docs/V1DeviceClassSpec.md @@ -0,0 +1,15 @@ + + +# 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 29f483bf60..000bb8f0fc 100644 --- a/kubernetes/docs/V1alpha3DeviceConstraint.md +++ b/kubernetes/docs/V1DeviceConstraint.md @@ -1,12 +1,13 @@ -# V1alpha3DeviceConstraint +# V1DeviceConstraint DeviceConstraint must have exactly one field set besides Requests. ## Properties 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..721f5f283f --- /dev/null +++ b/kubernetes/docs/V1DeviceCounterConsumption.md @@ -0,0 +1,14 @@ + + +# 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..a90b2d11fe --- /dev/null +++ b/kubernetes/docs/V1DeviceRequest.md @@ -0,0 +1,15 @@ + + +# 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..31a4f394f3 --- /dev/null +++ b/kubernetes/docs/V1DeviceRequestAllocationResult.md @@ -0,0 +1,22 @@ + + +# 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>**](Quantity.md) | 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..13343cc24e --- /dev/null +++ b/kubernetes/docs/V1DeviceSelector.md @@ -0,0 +1,13 @@ + + +# 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..46c26fe38b --- /dev/null +++ b/kubernetes/docs/V1DeviceSubRequest.md @@ -0,0 +1,19 @@ + + +# 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..85c8a006ab --- /dev/null +++ b/kubernetes/docs/V1DeviceTaint.md @@ -0,0 +1,16 @@ + + +# 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**](OffsetDateTime.md) | 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 ef2de41635..d03f9f9d08 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 . ## Properties diff --git a/kubernetes/docs/V1EnvFromSource.md b/kubernetes/docs/V1EnvFromSource.md index 3e2e55663d..4b3d4d9e1c 100644 --- a/kubernetes/docs/V1EnvFromSource.md +++ b/kubernetes/docs/V1EnvFromSource.md @@ -8,7 +8,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 e625d3f18b..1d409942ce 100644 --- a/kubernetes/docs/V1EnvVar.md +++ b/kubernetes/docs/V1EnvVar.md @@ -7,7 +7,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 5821c92183..1eb39507ae 100644 --- a/kubernetes/docs/V1EnvVarSource.md +++ b/kubernetes/docs/V1EnvVarSource.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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 2d2f392b2e..8622ba4de5 100644 --- a/kubernetes/docs/V1EphemeralContainer.md +++ b/kubernetes/docs/V1EphemeralContainer.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **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] @@ -20,7 +20,8 @@ Name | Type | Description | Notes **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..91abb1c454 --- /dev/null +++ b/kubernetes/docs/V1ExactDeviceRequest.md @@ -0,0 +1,19 @@ + + +# 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..5ce1f842e2 --- /dev/null +++ b/kubernetes/docs/V1FileKeySelector.md @@ -0,0 +1,16 @@ + + +# 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 bd74138ad3..7213163344 100644 --- a/kubernetes/docs/V1GlusterfsVolumeSource.md +++ b/kubernetes/docs/V1GlusterfsVolumeSource.md @@ -7,7 +7,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 9d39f2cf18..c74a899d65 100644 --- a/kubernetes/docs/V1JobSpec.md +++ b/kubernetes/docs/V1JobSpec.md @@ -8,7 +8,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] @@ -17,7 +17,7 @@ Name | Type | Description | Notes **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 527ef4f99f..90f5e91b46 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. ## Properties @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hardwareAddress** | **String** | HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. | [optional] **interfaceName** | **String** | InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. | [optional] -**ips** | **List<String>** | IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. 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 ddb0be4ec8..4c4232224d 100644 --- a/kubernetes/docs/V1NetworkPolicySpec.md +++ b/kubernetes/docs/V1NetworkPolicySpec.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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 09b04ae43a..8faa3f2796 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. ## Properties diff --git a/kubernetes/docs/V1PersistentVolumeClaimSpec.md b/kubernetes/docs/V1PersistentVolumeClaimSpec.md index 64b757fdfd..5d29c9a80e 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimSpec.md +++ b/kubernetes/docs/V1PersistentVolumeClaimSpec.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **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 e9a6d153e1..0b7f121372 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimStatus.md +++ b/kubernetes/docs/V1PersistentVolumeClaimStatus.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **allocatedResources** | [**Map<String, Quantity>**](Quantity.md) | 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>**](Quantity.md) | 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 c8ee9c19c9..5a78986fe4 100644 --- a/kubernetes/docs/V1PersistentVolumeSpec.md +++ b/kubernetes/docs/V1PersistentVolumeSpec.md @@ -35,7 +35,7 @@ Name | Type | Description | Notes **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 e980326d70..e0320cd608 100644 --- a/kubernetes/docs/V1PodAntiAffinity.md +++ b/kubernetes/docs/V1PodAntiAffinity.md @@ -7,7 +7,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..99c8f89f54 --- /dev/null +++ b/kubernetes/docs/V1PodCertificateProjection.md @@ -0,0 +1,18 @@ + + +# 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..08efeed58b --- /dev/null +++ b/kubernetes/docs/V1PodExtendedResourceClaimStatus.md @@ -0,0 +1,14 @@ + + +# 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 f5fd5ba76a..609d2920c7 100644 --- a/kubernetes/docs/V1PodSpec.md +++ b/kubernetes/docs/V1PodSpec.md @@ -17,10 +17,11 @@ Name | Type | Description | Notes **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 893b80e7aa..78fbf724ff 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **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 a499297156..88cdd583ee 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. ## Properties 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 2adccb2de9..7dcf6c5783 100644 --- a/kubernetes/docs/V1alpha3ResourceClaimList.md +++ b/kubernetes/docs/V1ResourceClaimList.md @@ -1,6 +1,6 @@ -# V1alpha3ResourceClaimList +# V1ResourceClaimList ResourceClaimList is a collection of claims. ## Properties @@ -8,7 +8,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 f69a2a5ee5..0667bb8786 100644 --- a/kubernetes/docs/V1alpha3ResourceClaimSpec.md +++ b/kubernetes/docs/V1ResourceClaimSpec.md @@ -1,13 +1,13 @@ -# V1alpha3ResourceClaimSpec +# V1ResourceClaimSpec ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. ## Properties 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..05d868a4a3 --- /dev/null +++ b/kubernetes/docs/V1ResourceClaimStatus.md @@ -0,0 +1,15 @@ + + +# 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 49800f229f..2f5889b0a3 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. ## Properties @@ -10,7 +10,7 @@ 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** | [**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 850678d773..128ad5de81 100644 --- a/kubernetes/docs/V1alpha3ResourceClaimTemplateList.md +++ b/kubernetes/docs/V1ResourceClaimTemplateList.md @@ -1,6 +1,6 @@ -# V1alpha3ResourceClaimTemplateList +# V1ResourceClaimTemplateList ResourceClaimTemplateList is a collection of claim templates. ## Properties @@ -8,7 +8,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 3693c1f442..7ff071aba4 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. ## Properties @@ -8,7 +8,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 7583159d17..424875d593 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. ## Properties diff --git a/kubernetes/docs/V1ResourceRequirements.md b/kubernetes/docs/V1ResourceRequirements.md index 0321c0db31..aab93db1a8 100644 --- a/kubernetes/docs/V1ResourceRequirements.md +++ b/kubernetes/docs/V1ResourceRequirements.md @@ -7,7 +7,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>**](Quantity.md) | 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>**](Quantity.md) | 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 5ab6703c80..8d42dd4856 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. ## Properties @@ -10,7 +10,7 @@ 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** | [**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 4db8d02daf..b787973c27 100644 --- a/kubernetes/docs/V1alpha3ResourceSliceList.md +++ b/kubernetes/docs/V1ResourceSliceList.md @@ -1,6 +1,6 @@ -# V1alpha3ResourceSliceList +# V1ResourceSliceList ResourceSliceList is a collection of ResourceSlices. ## Properties @@ -8,7 +8,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 177336ae6b..60e0723837 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. ## Properties @@ -8,13 +8,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 a4cb9691bc..9a9e67ce7e 100644 --- a/kubernetes/docs/V1SuccessPolicy.md +++ b/kubernetes/docs/V1SuccessPolicy.md @@ -7,7 +7,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 ff0061000d..c4a399bee2 100644 --- a/kubernetes/docs/V1Taint.md +++ b/kubernetes/docs/V1Taint.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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**](OffsetDateTime.md) | TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. | [optional] +**timeAdded** | [**OffsetDateTime**](OffsetDateTime.md) | 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..e2f57a75d8 --- /dev/null +++ b/kubernetes/docs/V1VolumeAttributesClass.md @@ -0,0 +1,21 @@ + + +# 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..ba3ef6febc --- /dev/null +++ b/kubernetes/docs/V1VolumeAttributesClassList.md @@ -0,0 +1,20 @@ + + +# 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 b540d91d21..c125e52cd4 100644 --- a/kubernetes/docs/V1VolumeError.md +++ b/kubernetes/docs/V1VolumeError.md @@ -7,7 +7,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**](OffsetDateTime.md) | time represents the time the error was encountered. | [optional] diff --git a/kubernetes/docs/V1VolumeProjection.md b/kubernetes/docs/V1VolumeProjection.md index 55dfc80c33..d4bd0457b9 100644 --- a/kubernetes/docs/V1VolumeProjection.md +++ b/kubernetes/docs/V1VolumeProjection.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **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 915d7fe092..57f492e903 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 Name | Type | Description | Notes @@ -10,8 +10,8 @@ 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** | [**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..813fda93b7 --- /dev/null +++ b/kubernetes/docs/V1alpha1PodCertificateRequestList.md @@ -0,0 +1,20 @@ + + +# 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..679098f546 --- /dev/null +++ b/kubernetes/docs/V1alpha1PodCertificateRequestSpec.md @@ -0,0 +1,22 @@ + + +# 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..c7088709d7 --- /dev/null +++ b/kubernetes/docs/V1alpha1PodCertificateRequestStatus.md @@ -0,0 +1,17 @@ + + +# 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**](OffsetDateTime.md) | 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**](OffsetDateTime.md) | 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**](OffsetDateTime.md) | 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 87ec32b023..0000000000 --- a/kubernetes/docs/V1alpha3AllocationResult.md +++ /dev/null @@ -1,14 +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 75770f6745..0000000000 --- a/kubernetes/docs/V1alpha3BasicDevice.md +++ /dev/null @@ -1,19 +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>**](Quantity.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<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 7d62f469a4..0000000000 --- a/kubernetes/docs/V1alpha3CounterSet.md +++ /dev/null @@ -1,14 +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 980e2b06f5..0000000000 --- a/kubernetes/docs/V1alpha3Device.md +++ /dev/null @@ -1,14 +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 89ccb5dfaf..0000000000 --- a/kubernetes/docs/V1alpha3DeviceAllocationResult.md +++ /dev/null @@ -1,14 +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 0ef71bc249..0000000000 --- a/kubernetes/docs/V1alpha3DeviceClaim.md +++ /dev/null @@ -1,15 +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 0111d4aae1..0000000000 --- a/kubernetes/docs/V1alpha3DeviceClassSpec.md +++ /dev/null @@ -1,14 +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 820b6fabf3..0000000000 --- a/kubernetes/docs/V1alpha3DeviceCounterConsumption.md +++ /dev/null @@ -1,14 +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 10c597ab83..0000000000 --- a/kubernetes/docs/V1alpha3DeviceRequest.md +++ /dev/null @@ -1,20 +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 3e551e7055..0000000000 --- a/kubernetes/docs/V1alpha3DeviceRequestAllocationResult.md +++ /dev/null @@ -1,18 +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 c22a5d3311..0000000000 --- a/kubernetes/docs/V1alpha3DeviceSubRequest.md +++ /dev/null @@ -1,18 +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 75caa4a9eb..0000000000 --- a/kubernetes/docs/V1alpha3ResourceClaimStatus.md +++ /dev/null @@ -1,15 +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 db2aae472a..1e7dbc7ed3 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 Name | Type | Description | Notes @@ -13,6 +13,7 @@ Name | Type | Description | Notes **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 c229dedcf0..18b15e726f 100644 --- a/kubernetes/docs/V1beta1AllocationResult.md +++ b/kubernetes/docs/V1beta1AllocationResult.md @@ -7,6 +7,7 @@ AllocationResult contains attributes of an allocated resource. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**allocationTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | 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..222a599f8e --- /dev/null +++ b/kubernetes/docs/V1beta1ApplyConfiguration.md @@ -0,0 +1,13 @@ + + +# 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 a3e872786f..0000000000 --- a/kubernetes/docs/V1beta1AuditAnnotation.md +++ /dev/null @@ -1,14 +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 4aecc96abd..7a2f662072 100644 --- a/kubernetes/docs/V1beta1BasicDevice.md +++ b/kubernetes/docs/V1beta1BasicDevice.md @@ -8,7 +8,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 c781494868..4aa93568e8 100644 --- a/kubernetes/docs/V1beta1CELDeviceSelector.md +++ b/kubernetes/docs/V1beta1CELDeviceSelector.md @@ -7,7 +7,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..2aeee183b5 --- /dev/null +++ b/kubernetes/docs/V1beta1CapacityRequestPolicy.md @@ -0,0 +1,15 @@ + + +# V1beta1CapacityRequestPolicy + +CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_default** | [**Quantity**](Quantity.md) | 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>**](Quantity.md) | 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..449a0ceb4f --- /dev/null +++ b/kubernetes/docs/V1beta1CapacityRequestPolicyRange.md @@ -0,0 +1,15 @@ + + +# 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.md) | 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.md) | 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.md) | 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..44ec9f22c9 --- /dev/null +++ b/kubernetes/docs/V1beta1CapacityRequirements.md @@ -0,0 +1,13 @@ + + +# V1beta1CapacityRequirements + +CapacityRequirements defines the capacity requirements for a specific device request. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requests** | [**Map<String, Quantity>**](Quantity.md) | 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 dfd8abf0c4..2622a1ab7e 100644 --- a/kubernetes/docs/V1beta1DeviceCapacity.md +++ b/kubernetes/docs/V1beta1DeviceCapacity.md @@ -7,6 +7,7 @@ DeviceCapacity describes a quantity associated with a device. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**requestPolicy** | [**V1beta1CapacityRequestPolicy**](V1beta1CapacityRequestPolicy.md) | | [optional] **value** | [**Quantity**](Quantity.md) | 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 720cb0a185..9f6d5a56c1 100644 --- a/kubernetes/docs/V1beta1DeviceClassSpec.md +++ b/kubernetes/docs/V1beta1DeviceClassSpec.md @@ -8,6 +8,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 ca90ec159e..3c52466ca0 100644 --- a/kubernetes/docs/V1beta1DeviceConstraint.md +++ b/kubernetes/docs/V1beta1DeviceConstraint.md @@ -7,6 +7,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 668b5c65f2..915b898f2d 100644 --- a/kubernetes/docs/V1beta1DeviceRequest.md +++ b/kubernetes/docs/V1beta1DeviceRequest.md @@ -9,6 +9,7 @@ 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] +**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 8953dc25e5..0d7213c2e4 100644 --- a/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md +++ b/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md @@ -8,10 +8,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>**](Quantity.md) | 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 9e38622feb..4b191ada92 100644 --- a/kubernetes/docs/V1beta1DeviceSubRequest.md +++ b/kubernetes/docs/V1beta1DeviceSubRequest.md @@ -8,6 +8,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 026153656d..0000000000 --- a/kubernetes/docs/V1beta1ExpressionWarning.md +++ /dev/null @@ -1,14 +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..8469aa1437 --- /dev/null +++ b/kubernetes/docs/V1beta1JSONPatch.md @@ -0,0 +1,13 @@ + + +# 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..fd8794ce70 --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicy.md @@ -0,0 +1,20 @@ + + +# 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..76153f4d60 --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicyBinding.md @@ -0,0 +1,20 @@ + + +# 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..693fc56a31 --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicyBindingList.md @@ -0,0 +1,20 @@ + + +# 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..ae9dace2b5 --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicyBindingSpec.md @@ -0,0 +1,15 @@ + + +# 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..d70c682468 --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicyList.md @@ -0,0 +1,20 @@ + + +# 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..1a4ecb87fb --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicySpec.md @@ -0,0 +1,19 @@ + + +# 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..a4e54ffcb8 --- /dev/null +++ b/kubernetes/docs/V1beta1Mutation.md @@ -0,0 +1,15 @@ + + +# 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 066365bee5..0000000000 --- a/kubernetes/docs/V1beta1TypeChecking.md +++ /dev/null @@ -1,13 +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 333bfc036b..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBinding.md +++ /dev/null @@ -1,20 +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 716e3a2a0c..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingList.md +++ /dev/null @@ -1,20 +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 67258252fa..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingSpec.md +++ /dev/null @@ -1,16 +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 cfcbbde5ff..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyList.md +++ /dev/null @@ -1,20 +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 1a29e2616f..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicySpec.md +++ /dev/null @@ -1,19 +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 5ce1f5a422..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyStatus.md +++ /dev/null @@ -1,15 +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 1ad8510bb7..0000000000 --- a/kubernetes/docs/V1beta1Validation.md +++ /dev/null @@ -1,16 +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 7283221b54..65d736b47c 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 Name | Type | Description | Notes @@ -13,6 +13,7 @@ Name | Type | Description | Notes **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 a5e3bb0803..6af271781b 100644 --- a/kubernetes/docs/V1beta2AllocationResult.md +++ b/kubernetes/docs/V1beta2AllocationResult.md @@ -7,6 +7,7 @@ AllocationResult contains attributes of an allocated resource. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**allocationTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | 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 bece15c555..b8e45bb1bf 100644 --- a/kubernetes/docs/V1beta2CELDeviceSelector.md +++ b/kubernetes/docs/V1beta2CELDeviceSelector.md @@ -7,7 +7,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..428f83b586 --- /dev/null +++ b/kubernetes/docs/V1beta2CapacityRequestPolicy.md @@ -0,0 +1,15 @@ + + +# V1beta2CapacityRequestPolicy + +CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_default** | [**Quantity**](Quantity.md) | 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>**](Quantity.md) | 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..8da970af2a --- /dev/null +++ b/kubernetes/docs/V1beta2CapacityRequestPolicyRange.md @@ -0,0 +1,15 @@ + + +# 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.md) | 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.md) | 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.md) | 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..de47b2a10c --- /dev/null +++ b/kubernetes/docs/V1beta2CapacityRequirements.md @@ -0,0 +1,13 @@ + + +# V1beta2CapacityRequirements + +CapacityRequirements defines the capacity requirements for a specific device request. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requests** | [**Map<String, Quantity>**](Quantity.md) | 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 493f07860f..83df91e736 100644 --- a/kubernetes/docs/V1beta2Device.md +++ b/kubernetes/docs/V1beta2Device.md @@ -8,7 +8,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 a70ac7348e..d48c759801 100644 --- a/kubernetes/docs/V1beta2DeviceCapacity.md +++ b/kubernetes/docs/V1beta2DeviceCapacity.md @@ -7,6 +7,7 @@ DeviceCapacity describes a quantity associated with a device. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**requestPolicy** | [**V1beta2CapacityRequestPolicy**](V1beta2CapacityRequestPolicy.md) | | [optional] **value** | [**Quantity**](Quantity.md) | 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 6d97c9001c..33c25a9564 100644 --- a/kubernetes/docs/V1beta2DeviceClassSpec.md +++ b/kubernetes/docs/V1beta2DeviceClassSpec.md @@ -8,6 +8,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 ea1aaaf5d0..a7ff04e621 100644 --- a/kubernetes/docs/V1beta2DeviceConstraint.md +++ b/kubernetes/docs/V1beta2DeviceConstraint.md @@ -7,6 +7,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 ee5261f01e..c4765ca9b7 100644 --- a/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md +++ b/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md @@ -8,10 +8,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>**](Quantity.md) | 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 dcdd475337..5e2181c37e 100644 --- a/kubernetes/docs/V1beta2DeviceSubRequest.md +++ b/kubernetes/docs/V1beta2DeviceSubRequest.md @@ -8,6 +8,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 fb92691d91..a1d2564235 100644 --- a/kubernetes/docs/V1beta2ExactDeviceRequest.md +++ b/kubernetes/docs/V1beta2ExactDeviceRequest.md @@ -9,6 +9,7 @@ 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** | [**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 1a954a10bb..a3fda6c2df 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java @@ -15,7 +15,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; 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 7b7c09becc..5716e2bfc2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java @@ -12,7 +12,7 @@ */ package io.kubernetes.client.openapi; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); 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 940a26f61e..d0d73dcc74 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; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; 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 a861c40c99..7c30c8e7cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java @@ -12,7 +12,7 @@ */ package io.kubernetes.client.openapi; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e07dd9394c..bb7370ece6 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; @@ -61,7 +61,7 @@ public void setApiClient(ApiClient apiClient) { } /** - * Build call for createValidatingAdmissionPolicy + * Build call for createMutatingAdmissionPolicy * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -79,11 +79,11 @@ public void setApiClient(ApiClient apiClient) { 401 Unauthorized - */ - public okhttp3.Call createValidatingAdmissionPolicyCall(V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createMutatingAdmissionPolicyCall(V1beta1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { 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(); @@ -125,28 +125,28 @@ public okhttp3.Call createValidatingAdmissionPolicyCall(V1beta1ValidatingAdmissi } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyValidateBeforeCall(V1beta1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, 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)"); } - okhttp3.Call localVarCall = createValidatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = createMutatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * create a ValidatingAdmissionPolicy + * create a MutatingAdmissionPolicy * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta1ValidatingAdmissionPolicy + * @return V1beta1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -157,20 +157,20 @@ private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(V1beta1Va
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicy createValidatingAdmissionPolicy(V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1MutatingAdmissionPolicy createMutatingAdmissionPolicy(V1beta1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createMutatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * create a ValidatingAdmissionPolicy + * create a MutatingAdmissionPolicy * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> + * @return ApiResponse<V1beta1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -181,15 +181,15 @@ public V1beta1ValidatingAdmissionPolicy createValidatingAdmissionPolicy(V1beta1V
401 Unauthorized -
*/ - public ApiResponse createValidatingAdmissionPolicyWithHttpInfo(V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createMutatingAdmissionPolicyWithHttpInfo(V1beta1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createMutatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * create a ValidatingAdmissionPolicy + * create a MutatingAdmissionPolicy * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -207,15 +207,15 @@ public ApiResponse createValidatingAdmissionPo 401 Unauthorized - */ - public okhttp3.Call createValidatingAdmissionPolicyAsync(V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createMutatingAdmissionPolicyAsync(V1beta1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, 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; } /** - * Build call for createValidatingAdmissionPolicyBinding + * Build call for createMutatingAdmissionPolicyBinding * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -233,11 +233,11 @@ public okhttp3.Call createValidatingAdmissionPolicyAsync(V1beta1ValidatingAdmiss 401 Unauthorized - */ - public okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createMutatingAdmissionPolicyBindingCall(V1beta1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { 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(); @@ -279,28 +279,28 @@ public okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1beta1Validating } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingValidateBeforeCall(V1beta1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, 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)"); } - okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = createMutatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * create a ValidatingAdmissionPolicyBinding + * create a MutatingAdmissionPolicyBinding * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta1ValidatingAdmissionPolicyBinding + * @return V1beta1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -311,20 +311,20 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(V1
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyBinding(V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1MutatingAdmissionPolicyBinding createMutatingAdmissionPolicyBinding(V1beta1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createMutatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * create a ValidatingAdmissionPolicyBinding + * create a MutatingAdmissionPolicyBinding * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> + * @return ApiResponse<V1beta1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -335,15 +335,15 @@ public V1beta1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyBi
401 Unauthorized -
*/ - public ApiResponse createValidatingAdmissionPolicyBindingWithHttpInfo(V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createMutatingAdmissionPolicyBindingWithHttpInfo(V1beta1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createMutatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * create a ValidatingAdmissionPolicyBinding + * create a MutatingAdmissionPolicyBinding * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -361,15 +361,15 @@ public ApiResponse createValidatingAdmi 401 Unauthorized - */ - public okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createMutatingAdmissionPolicyBindingAsync(V1beta1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, 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; } /** - * Build call for deleteCollectionValidatingAdmissionPolicy + * Build call for deleteCollectionMutatingAdmissionPolicy * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -395,11 +395,11 @@ public okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1beta1Validatin 401 Unauthorized - */ - public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionMutatingAdmissionPolicyCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { 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(); @@ -481,17 +481,17 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * delete collection of ValidatingAdmissionPolicy + * delete collection of MutatingAdmissionPolicy * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -516,14 +516,14 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall 401 Unauthorized - */ - public V1Status deleteCollectionValidatingAdmissionPolicy(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionMutatingAdmissionPolicy(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * delete collection of ValidatingAdmissionPolicy + * delete collection of MutatingAdmissionPolicy * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -548,15 +548,15 @@ public V1Status deleteCollectionValidatingAdmissionPolicy(String pretty, String 401 Unauthorized - */ - public ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionMutatingAdmissionPolicyWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + 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); } /** * (asynchronously) - * delete collection of ValidatingAdmissionPolicy + * delete collection of MutatingAdmissionPolicy * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -582,15 +582,15 @@ public ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpIn 401 Unauthorized - */ - public okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionMutatingAdmissionPolicyAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - 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; } /** - * Build call for deleteCollectionValidatingAdmissionPolicyBinding + * Build call for deleteCollectionMutatingAdmissionPolicyBinding * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -616,11 +616,11 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(String pretty 401 Unauthorized - */ - public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { 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(); @@ -702,17 +702,17 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * delete collection of ValidatingAdmissionPolicyBinding + * delete collection of MutatingAdmissionPolicyBinding * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -737,14 +737,14 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBef 401 Unauthorized - */ - public V1Status deleteCollectionValidatingAdmissionPolicyBinding(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1Status deleteCollectionMutatingAdmissionPolicyBinding(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * delete collection of ValidatingAdmissionPolicyBinding + * delete collection of MutatingAdmissionPolicyBinding * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -769,15 +769,15 @@ public V1Status deleteCollectionValidatingAdmissionPolicyBinding(String pretty, 401 Unauthorized - */ - public ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + public ApiResponse deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + 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); } /** * (asynchronously) - * delete collection of ValidatingAdmissionPolicyBinding + * delete collection of MutatingAdmissionPolicyBinding * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -803,16 +803,16 @@ public ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWit 401 Unauthorized - */ - public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - 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; } /** - * Build call for deleteValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) + * Build call for deleteMutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -831,11 +831,11 @@ public okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(String 401 Unauthorized - */ - public okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteMutatingAdmissionPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { 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}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -886,23 +886,23 @@ public okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicy(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingAdmissionPolicy(Async)"); } - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * - * delete a ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) + * delete a MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -920,15 +920,15 @@ private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(String na 401 Unauthorized - */ - public V1Status deleteValidatingAdmissionPolicy(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1Status deleteMutatingAdmissionPolicy(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteMutatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * - * delete a ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) + * delete a MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -946,16 +946,16 @@ public V1Status deleteValidatingAdmissionPolicy(String name, String pretty, Stri 401 Unauthorized - */ - public ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteMutatingAdmissionPolicyWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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); } /** * (asynchronously) - * delete a ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) + * delete a MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -974,16 +974,16 @@ public ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteMutatingAdmissionPolicyAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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; } /** - * Build call for deleteValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * Build call for deleteMutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -1002,11 +1002,11 @@ public okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pre 401 Unauthorized - */ - public okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteMutatingAdmissionPolicyBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { 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}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1057,23 +1057,23 @@ public okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingAdmissionPolicyBinding(Async)"); } - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * - * delete a ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * delete a MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -1091,15 +1091,15 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(St 401 Unauthorized - */ - public V1Status deleteValidatingAdmissionPolicyBinding(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1Status deleteMutatingAdmissionPolicyBinding(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * - * delete a ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * delete a MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -1117,16 +1117,16 @@ public V1Status deleteValidatingAdmissionPolicyBinding(String name, String prett 401 Unauthorized - */ - public ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteMutatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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); } /** * (asynchronously) - * delete a ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * delete a MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -1145,9 +1145,9 @@ public ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo( 401 Unauthorized - */ - public okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteMutatingAdmissionPolicyBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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; @@ -1258,7 +1258,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c return localVarCall; } /** - * Build call for listValidatingAdmissionPolicy + * Build call for listMutatingAdmissionPolicy * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1280,11 +1280,11 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c 401 Unauthorized - */ - public okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listMutatingAdmissionPolicyCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { 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(); @@ -1354,17 +1354,17 @@ public okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean all } @SuppressWarnings("rawtypes") - private okhttp3.Call listValidatingAdmissionPolicyValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); return localVarCall; } /** * - * list or watch objects of kind ValidatingAdmissionPolicy + * list or watch objects of kind MutatingAdmissionPolicy * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1376,7 +1376,7 @@ private okhttp3.Call listValidatingAdmissionPolicyValidateBeforeCall(String pret * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @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 V1beta1ValidatingAdmissionPolicyList + * @return V1beta1MutatingAdmissionPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1385,14 +1385,14 @@ private okhttp3.Call listValidatingAdmissionPolicyValidateBeforeCall(String pret
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1beta1MutatingAdmissionPolicyList listMutatingAdmissionPolicy(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * - * list or watch objects of kind ValidatingAdmissionPolicy + * list or watch objects of kind MutatingAdmissionPolicy * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1404,7 +1404,7 @@ public V1beta1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @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 ApiResponse<V1beta1ValidatingAdmissionPolicyList> + * @return ApiResponse<V1beta1MutatingAdmissionPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1413,15 +1413,15 @@ public V1beta1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy(String
401 Unauthorized -
*/ - public ApiResponse listValidatingAdmissionPolicyWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse listMutatingAdmissionPolicyWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + 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); } /** * (asynchronously) - * list or watch objects of kind ValidatingAdmissionPolicy + * list or watch objects of kind MutatingAdmissionPolicy * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1443,15 +1443,15 @@ public ApiResponse listValidatingAdmission 401 Unauthorized - */ - public okhttp3.Call listValidatingAdmissionPolicyAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listMutatingAdmissionPolicyAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - 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; } /** - * Build call for listValidatingAdmissionPolicyBinding + * Build call for listMutatingAdmissionPolicyBinding * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1473,11 +1473,11 @@ public okhttp3.Call listValidatingAdmissionPolicyAsync(String pretty, Boolean al 401 Unauthorized - */ - public okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listMutatingAdmissionPolicyBindingCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { 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(); @@ -1547,17 +1547,17 @@ public okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Bool } @SuppressWarnings("rawtypes") - private okhttp3.Call listValidatingAdmissionPolicyBindingValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyBindingValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); return localVarCall; } /** * - * list or watch objects of kind ValidatingAdmissionPolicyBinding + * list or watch objects of kind MutatingAdmissionPolicyBinding * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1569,7 +1569,7 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingValidateBeforeCall(Stri * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @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 V1beta1ValidatingAdmissionPolicyBindingList + * @return V1beta1MutatingAdmissionPolicyBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1578,14 +1578,14 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingValidateBeforeCall(Stri
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicyBinding(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1beta1MutatingAdmissionPolicyBindingList listMutatingAdmissionPolicyBinding(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * - * list or watch objects of kind ValidatingAdmissionPolicyBinding + * list or watch objects of kind MutatingAdmissionPolicyBinding * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1597,7 +1597,7 @@ public V1beta1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicy * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @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 ApiResponse<V1beta1ValidatingAdmissionPolicyBindingList> + * @return ApiResponse<V1beta1MutatingAdmissionPolicyBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1606,15 +1606,15 @@ public V1beta1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicy
401 Unauthorized -
*/ - public ApiResponse listValidatingAdmissionPolicyBindingWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse listMutatingAdmissionPolicyBindingWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + 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); } /** * (asynchronously) - * list or watch objects of kind ValidatingAdmissionPolicyBinding + * list or watch objects of kind MutatingAdmissionPolicyBinding * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1636,16 +1636,16 @@ public ApiResponse listValidatingAd 401 Unauthorized - */ - public okhttp3.Call listValidatingAdmissionPolicyBindingAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listMutatingAdmissionPolicyBindingAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - 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; } /** - * Build call for patchValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) + * Build call for patchMutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -1663,11 +1663,11 @@ public okhttp3.Call listValidatingAdmissionPolicyBindingAsync(String pretty, Boo 401 Unauthorized - */ - public okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchMutatingAdmissionPolicyCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { 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}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1714,35 +1714,35 @@ public okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch body } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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)"); } - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); return localVarCall; } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @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 V1beta1ValidatingAdmissionPolicy + * @return V1beta1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1752,22 +1752,22 @@ private okhttp3.Call patchValidatingAdmissionPolicyValidateBeforeCall(String nam
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1beta1MutatingAdmissionPolicy patchMutatingAdmissionPolicy(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @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 ApiResponse<V1beta1ValidatingAdmissionPolicy> + * @return ApiResponse<V1beta1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1777,16 +1777,16 @@ public V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(String na
401 Unauthorized -
*/ - public ApiResponse patchValidatingAdmissionPolicyWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse patchMutatingAdmissionPolicyWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); } /** * (asynchronously) - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -1804,16 +1804,16 @@ public ApiResponse patchValidatingAdmissionPol 401 Unauthorized - */ - public okhttp3.Call patchValidatingAdmissionPolicyAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchMutatingAdmissionPolicyAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; } /** - * Build call for patchValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * Build call for patchMutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -1831,11 +1831,11 @@ public okhttp3.Call patchValidatingAdmissionPolicyAsync(String name, V1Patch bod 401 Unauthorized - */ - public okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchMutatingAdmissionPolicyBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { 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}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1882,35 +1882,35 @@ public okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pat } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyBindingValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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)"); } - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); return localVarCall; } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @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 V1beta1ValidatingAdmissionPolicyBinding + * @return V1beta1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1920,22 +1920,22 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(Str
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBinding(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1beta1MutatingAdmissionPolicyBinding patchMutatingAdmissionPolicyBinding(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @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 ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> + * @return ApiResponse<V1beta1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1945,16 +1945,16 @@ public V1beta1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBin
401 Unauthorized -
*/ - public ApiResponse patchValidatingAdmissionPolicyBindingWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse patchMutatingAdmissionPolicyBindingWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); } /** * (asynchronously) - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -1972,307 +1972,16 @@ public ApiResponse patchValidatingAdmis 401 Unauthorized - */ - public okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchMutatingAdmissionPolicyBindingAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; } /** - * Build call for patchValidatingAdmissionPolicyStatus - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // 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)"); - } - - - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 V1beta1ValidatingAdmissionPolicy - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 ApiResponse<V1beta1ValidatingAdmissionPolicy> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchValidatingAdmissionPolicyStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); - } - - /** - * (asynchronously) - * partially update status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; - } - /** - * Build call for readValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readValidatingAdmissionPolicyCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - 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); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(String name, 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)"); - } - - - okhttp3.Call localVarCall = readValidatingAdmissionPolicyCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return V1beta1ValidatingAdmissionPolicy - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta1ValidatingAdmissionPolicy readValidatingAdmissionPolicy(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readValidatingAdmissionPolicyWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readValidatingAdmissionPolicyAsync(String name, 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; - } - /** - * Build call for readValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * Build call for readMutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2284,11 +1993,11 @@ public okhttp3.Call readValidatingAdmissionPolicyAsync(String name, String prett 401 Unauthorized - */ - public okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readMutatingAdmissionPolicyCall(String name, String pretty, final ApiCallback _callback) throws ApiException { 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}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2319,25 +2028,25 @@ public okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyValidateBeforeCall(String name, 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)"); } - okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingCall(name, pretty, _callback); + okhttp3.Call localVarCall = readMutatingAdmissionPolicyCall(name, pretty, _callback); return localVarCall; } /** * - * read the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * read the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return V1beta1ValidatingAdmissionPolicyBinding + * @return V1beta1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2346,17 +2055,17 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(Stri
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBinding(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty); + public V1beta1MutatingAdmissionPolicy readMutatingAdmissionPolicy(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readMutatingAdmissionPolicyWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * - * read the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * read the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> + * @return ApiResponse<V1beta1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2365,16 +2074,16 @@ public V1beta1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBind
401 Unauthorized -
*/ - public ApiResponse readValidatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse readMutatingAdmissionPolicyWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readMutatingAdmissionPolicyValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * read the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * read the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -2386,16 +2095,16 @@ public ApiResponse readValidatingAdmiss 401 Unauthorized - */ - public okhttp3.Call readValidatingAdmissionPolicyBindingAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readMutatingAdmissionPolicyAsync(String name, 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; } /** - * Build call for readValidatingAdmissionPolicyStatus - * @param name name of the ValidatingAdmissionPolicy (required) + * Build call for readMutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2407,11 +2116,11 @@ public okhttp3.Call readValidatingAdmissionPolicyBindingAsync(String name, Strin 401 Unauthorized - */ - public okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readMutatingAdmissionPolicyBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { 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}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2442,222 +2151,63 @@ public okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(String name, 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)"); - } - - - okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return V1beta1ValidatingAdmissionPolicy - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta1ValidatingAdmissionPolicy readValidatingAdmissionPolicyStatus(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readValidatingAdmissionPolicyStatusWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readValidatingAdmissionPolicyStatusAsync(String name, 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; - } - /** - * Build call for replaceValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingValidateBeforeCall(String name, 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)"); } - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = readMutatingAdmissionPolicyBindingCall(name, pretty, _callback); return localVarCall; } /** * - * replace the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) + * read the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta1ValidatingAdmissionPolicy + * @return V1beta1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicy(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1MutatingAdmissionPolicyBinding readMutatingAdmissionPolicyBinding(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * - * replace the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) + * read the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> + * @return ApiResponse<V1beta1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse replaceValidatingAdmissionPolicyWithHttpInfo(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse readMutatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * replace the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) + * read the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2665,20 +2215,19 @@ public ApiResponse replaceValidatingAdmissionP -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call replaceValidatingAdmissionPolicyAsync(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readMutatingAdmissionPolicyBindingAsync(String name, 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; } /** - * Build call for replaceValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) + * Build call for replaceMutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -2695,11 +2244,11 @@ public okhttp3.Call replaceValidatingAdmissionPolicyAsync(String name, V1beta1Va 401 Unauthorized - */ - public okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceMutatingAdmissionPolicyCall(String name, V1beta1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { 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}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2742,34 +2291,34 @@ public okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1b } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(String name, V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyValidateBeforeCall(String name, V1beta1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, 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)"); } - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta1ValidatingAdmissionPolicyBinding + * @return V1beta1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2779,21 +2328,21 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(S
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyBinding replaceValidatingAdmissionPolicyBinding(String name, V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1MutatingAdmissionPolicy replaceMutatingAdmissionPolicy(String name, V1beta1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> + * @return ApiResponse<V1beta1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2803,16 +2352,16 @@ public V1beta1ValidatingAdmissionPolicyBinding replaceValidatingAdmissionPolicyB
401 Unauthorized -
*/ - public ApiResponse replaceValidatingAdmissionPolicyBindingWithHttpInfo(String name, V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceMutatingAdmissionPolicyWithHttpInfo(String name, V1beta1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, 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); } /** * (asynchronously) - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -2829,16 +2378,16 @@ public ApiResponse replaceValidatingAdm 401 Unauthorized - */ - public okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(String name, V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceMutatingAdmissionPolicyAsync(String name, V1beta1MutatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, 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; } /** - * Build call for replaceValidatingAdmissionPolicyStatus - * @param name name of the ValidatingAdmissionPolicy (required) + * Build call for replaceMutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -2855,11 +2404,11 @@ public okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(String name, V1 401 Unauthorized - */ - public okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceMutatingAdmissionPolicyBindingCall(String name, V1beta1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { 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}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2902,34 +2451,34 @@ public okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1be } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingValidateBeforeCall(String name, V1beta1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, 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)"); } - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1beta1ValidatingAdmissionPolicy + * @return V1beta1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2939,21 +2488,21 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(St
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1MutatingAdmissionPolicyBinding replaceMutatingAdmissionPolicyBinding(String name, V1beta1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> + * @return ApiResponse<V1beta1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2963,16 +2512,16 @@ public V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(S
401 Unauthorized -
*/ - public ApiResponse replaceValidatingAdmissionPolicyStatusWithHttpInfo(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceMutatingAdmissionPolicyBindingWithHttpInfo(String name, V1beta1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, 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); } /** * (asynchronously) - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -2989,10 +2538,10 @@ public ApiResponse replaceValidatingAdmissionP 401 Unauthorized - */ - public okhttp3.Call replaceValidatingAdmissionPolicyStatusAsync(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceMutatingAdmissionPolicyBindingAsync(String name, V1beta1MutatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, 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; } 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 5a537c6f78..63f0eb7dfc 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; @@ -212,6 +214,170 @@ public okhttp3.Call createClusterTrustBundleAsync(V1alpha1ClusterTrustBundle bod localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for createNamespacedPodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedPodCertificateRequestCall(String namespace, V1alpha1PodCertificateRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedPodCertificateRequestValidateBeforeCall(String namespace, V1alpha1PodCertificateRequest body, String pretty, String dryRun, String fieldManager, 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)"); + } + + + okhttp3.Call localVarCall = createNamespacedPodCertificateRequestCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha1PodCertificateRequest + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha1PodCertificateRequest createNamespacedPodCertificateRequest(String namespace, V1alpha1PodCertificateRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createNamespacedPodCertificateRequestWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha1PodCertificateRequest> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createNamespacedPodCertificateRequestWithHttpInfo(String namespace, V1alpha1PodCertificateRequest body, String pretty, String dryRun, String fieldManager, 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); + } + + /** + * (asynchronously) + * create a PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedPodCertificateRequestAsync(String namespace, V1alpha1PodCertificateRequest body, String pretty, String dryRun, String fieldManager, 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; + } /** * Build call for deleteClusterTrustBundle * @param name name of the ClusterTrustBundle (required) @@ -605,7 +771,23 @@ public okhttp3.Call deleteCollectionClusterTrustBundleAsync(String pretty, Strin return localVarCall; } /** - * Build call for getAPIResources + * Build call for deleteCollectionNamespacedPodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -616,14 +798,71 @@ public okhttp3.Call deleteCollectionClusterTrustBundleAsync(String pretty, Strin 401 Unauthorized - */ - public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call deleteCollectionNamespacedPodCertificateRequestCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + 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" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -636,28 +875,49 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodCertificateRequestValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodCertificateRequest(Async)"); + } - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + + okhttp3.Call localVarCall = deleteCollectionNamespacedPodCertificateRequestCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * get available resources - * @return V1APIResourceList + * delete collection of PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -666,32 +926,1719 @@ private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callba
401 Unauthorized -
*/ - public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + public V1Status deleteCollectionNamespacedPodCertificateRequest(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedPodCertificateRequestWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * get available resources - * @return ApiResponse<V1APIResourceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + * delete collection of PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedPodCertificateRequestWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = 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); + } + + /** + * (asynchronously) + * delete collection of PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedPodCertificateRequestAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for deleteNamespacedPodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedPodCertificateRequestCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedPodCertificateRequestValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedPodCertificateRequest(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPodCertificateRequest(Async)"); + } + + + okhttp3.Call localVarCall = deleteNamespacedPodCertificateRequestCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a PodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deleteNamespacedPodCertificateRequest(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedPodCertificateRequestWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a PodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedPodCertificateRequestWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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); + } + + /** + * (asynchronously) + * delete a PodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedPodCertificateRequestAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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; + } + /** + * Build call for getAPIResources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + 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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + + } + + /** + * + * get available resources + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get available resources + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get available resources + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listClusterTrustBundle + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listClusterTrustBundleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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", "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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listClusterTrustBundleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ClusterTrustBundle + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 V1alpha1ClusterTrustBundleList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha1ClusterTrustBundleList listClusterTrustBundle(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ClusterTrustBundle + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 ApiResponse<V1alpha1ClusterTrustBundleList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listClusterTrustBundleWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + 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); + } + + /** + * (asynchronously) + * list or watch objects of kind ClusterTrustBundle + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listClusterTrustBundleAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for listNamespacedPodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedPodCertificateRequestCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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", "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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedPodCertificateRequestValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPodCertificateRequest(Async)"); + } + + + okhttp3.Call localVarCall = listNamespacedPodCertificateRequestCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 V1alpha1PodCertificateRequestList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha1PodCertificateRequestList listNamespacedPodCertificateRequest(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedPodCertificateRequestWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 ApiResponse<V1alpha1PodCertificateRequestList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedPodCertificateRequestWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedPodCertificateRequestValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedPodCertificateRequestAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for listPodCertificateRequestForAllNamespaces + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listPodCertificateRequestForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/podcertificaterequests"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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", "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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listPodCertificateRequestForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listPodCertificateRequestForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind PodCertificateRequest + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 V1alpha1PodCertificateRequestList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha1PodCertificateRequestList listPodCertificateRequestForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listPodCertificateRequestForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind PodCertificateRequest + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 ApiResponse<V1alpha1PodCertificateRequestList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listPodCertificateRequestForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPodCertificateRequestForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind PodCertificateRequest + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listPodCertificateRequestForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for patchClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchClusterTrustBundleCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchClusterTrustBundleValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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)"); + } + + + okhttp3.Call localVarCall = patchClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 V1alpha1ClusterTrustBundle + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha1ClusterTrustBundle patchClusterTrustBundle(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 ApiResponse<V1alpha1ClusterTrustBundle> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchClusterTrustBundleWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); + } + + /** + * (asynchronously) + * partially update the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchClusterTrustBundleAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; + } + /** + * Build call for patchNamespacedPodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedPodCertificateRequestCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedPodCertificateRequestValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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)"); + } + + + okhttp3.Call localVarCall = patchNamespacedPodCertificateRequestCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 V1alpha1PodCertificateRequest + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha1PodCertificateRequest patchNamespacedPodCertificateRequest(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedPodCertificateRequestWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 ApiResponse<V1alpha1PodCertificateRequest> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedPodCertificateRequestWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); + } + + /** + * (asynchronously) + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedPodCertificateRequestAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; + } + /** + * Build call for patchNamespacedPodCertificateRequestStatus + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedPodCertificateRequestStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedPodCertificateRequestStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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)"); + } + + + okhttp3.Call localVarCall = patchNamespacedPodCertificateRequestStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 V1alpha1PodCertificateRequest + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha1PodCertificateRequest patchNamespacedPodCertificateRequestStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedPodCertificateRequestStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 ApiResponse<V1alpha1PodCertificateRequest> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedPodCertificateRequestStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); + } + + /** + * (asynchronously) + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedPodCertificateRequestStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; + } + /** + * Build call for readClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readClusterTrustBundleCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + 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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readClusterTrustBundleValidateBeforeCall(String name, 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)"); + } + + + okhttp3.Call localVarCall = readClusterTrustBundleCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1alpha1ClusterTrustBundle + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha1ClusterTrustBundle readClusterTrustBundle(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readClusterTrustBundleWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1alpha1ClusterTrustBundle> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readClusterTrustBundleWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readClusterTrustBundleValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readClusterTrustBundleAsync(String name, 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; + } + /** + * Build call for readNamespacedPodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedPodCertificateRequestCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + 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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedPodCertificateRequestValidateBeforeCall(String name, String namespace, 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)"); + } + + + okhttp3.Call localVarCall = readNamespacedPodCertificateRequestCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1alpha1PodCertificateRequest + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha1PodCertificateRequest readNamespacedPodCertificateRequest(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedPodCertificateRequestWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1alpha1PodCertificateRequest> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedPodCertificateRequestWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedPodCertificateRequestValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * get available resources + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -702,26 +2649,18 @@ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiEx 401 Unauthorized - */ - public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call readNamespacedPodCertificateRequestAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedPodCertificateRequestValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for listClusterTrustBundle + * Build call for readNamespacedPodCertificateRequestStatus + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -732,11 +2671,13 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c 401 Unauthorized - */ - public okhttp3.Call listClusterTrustBundleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readNamespacedPodCertificateRequestStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles"; + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -744,51 +2685,11 @@ public okhttp3.Call listClusterTrustBundleCall(String pretty, Boolean allowWatch 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)); - } - 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", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch", "application/cbor-seq" + "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -806,29 +2707,31 @@ public okhttp3.Call listClusterTrustBundleCall(String pretty, Boolean allowWatch } @SuppressWarnings("rawtypes") - private okhttp3.Call listClusterTrustBundleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedPodCertificateRequestStatusValidateBeforeCall(String name, String namespace, 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)"); + } - okhttp3.Call localVarCall = listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = readNamespacedPodCertificateRequestStatusCall(name, namespace, pretty, _callback); return localVarCall; } /** * - * list or watch objects of kind ClusterTrustBundle + * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 V1alpha1ClusterTrustBundleList + * @return V1alpha1PodCertificateRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -837,26 +2740,18 @@ private okhttp3.Call listClusterTrustBundleValidateBeforeCall(String pretty, Boo
401 Unauthorized -
*/ - public V1alpha1ClusterTrustBundleList listClusterTrustBundle(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1alpha1PodCertificateRequest readNamespacedPodCertificateRequestStatus(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedPodCertificateRequestStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** * - * list or watch objects of kind ClusterTrustBundle + * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 ApiResponse<V1alpha1ClusterTrustBundleList> + * @return ApiResponse<V1alpha1PodCertificateRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -865,26 +2760,18 @@ public V1alpha1ClusterTrustBundleList listClusterTrustBundle(String pretty, Bool
401 Unauthorized -
*/ - public ApiResponse listClusterTrustBundleWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse readNamespacedPodCertificateRequestStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedPodCertificateRequestStatusValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * list or watch objects of kind ClusterTrustBundle + * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -895,22 +2782,21 @@ public ApiResponse listClusterTrustBundleWithHtt 401 Unauthorized - */ - public okhttp3.Call listClusterTrustBundleAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readNamespacedPodCertificateRequestStatusAsync(String name, String namespace, String pretty, 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 = readNamespacedPodCertificateRequestStatusValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for patchClusterTrustBundle + * Build call for replaceClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -922,7 +2808,7 @@ public okhttp3.Call listClusterTrustBundleAsync(String pretty, Boolean allowWatc 401 Unauthorized - */ - public okhttp3.Call patchClusterTrustBundleCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceClusterTrustBundleCall(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -947,10 +2833,6 @@ public okhttp3.Call patchClusterTrustBundleCall(String name, V1Patch body, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -969,38 +2851,37 @@ public okhttp3.Call patchClusterTrustBundleCall(String name, V1Patch body, Strin localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchClusterTrustBundleValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceClusterTrustBundleValidateBeforeCall(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, 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)"); } - okhttp3.Call localVarCall = patchClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + okhttp3.Call localVarCall = replaceClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * partially update the specified ClusterTrustBundle + * replace the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 V1alpha1ClusterTrustBundle * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1011,21 +2892,20 @@ private okhttp3.Call patchClusterTrustBundleValidateBeforeCall(String name, V1Pa 401 Unauthorized - */ - public V1alpha1ClusterTrustBundle patchClusterTrustBundle(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1alpha1ClusterTrustBundle replaceClusterTrustBundle(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * partially update the specified ClusterTrustBundle + * replace the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 ApiResponse<V1alpha1ClusterTrustBundle> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1036,22 +2916,21 @@ public V1alpha1ClusterTrustBundle patchClusterTrustBundle(String name, V1Patch b 401 Unauthorized - */ - public ApiResponse patchClusterTrustBundleWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + public ApiResponse replaceClusterTrustBundleWithHttpInfo(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, 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); } /** * (asynchronously) - * partially update the specified ClusterTrustBundle + * replace the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1063,17 +2942,22 @@ public ApiResponse patchClusterTrustBundleWithHttpIn 401 Unauthorized - */ - public okhttp3.Call patchClusterTrustBundleAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceClusterTrustBundleAsync(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, 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; } /** - * Build call for readClusterTrustBundle - * @param name name of the ClusterTrustBundle (required) + * Build call for replaceNamespacedPodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1081,15 +2965,17 @@ public okhttp3.Call patchClusterTrustBundleAsync(String name, V1Patch body, Stri +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call readClusterTrustBundleCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call replaceNamespacedPodCertificateRequestCall(String name, String namespace, V1alpha1PodCertificateRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1097,6 +2983,18 @@ public okhttp3.Call readClusterTrustBundleCall(String name, String pretty, final 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)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -1109,73 +3007,100 @@ public okhttp3.Call readClusterTrustBundleCall(String name, String pretty, final } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readClusterTrustBundleValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodCertificateRequestValidateBeforeCall(String name, String namespace, V1alpha1PodCertificateRequest body, String pretty, String dryRun, String fieldManager, 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)"); + } + + // 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)"); } - okhttp3.Call localVarCall = readClusterTrustBundleCall(name, pretty, _callback); + okhttp3.Call localVarCall = replaceNamespacedPodCertificateRequestCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * read the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle (required) + * replace the specified PodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return V1alpha1ClusterTrustBundle + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1alpha1PodCertificateRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha1ClusterTrustBundle readClusterTrustBundle(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readClusterTrustBundleWithHttpInfo(name, pretty); + public V1alpha1PodCertificateRequest replaceNamespacedPodCertificateRequest(String name, String namespace, V1alpha1PodCertificateRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedPodCertificateRequestWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * read the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle (required) + * replace the specified PodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return ApiResponse<V1alpha1ClusterTrustBundle> + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1alpha1PodCertificateRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse readClusterTrustBundleWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readClusterTrustBundleValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceNamespacedPodCertificateRequestWithHttpInfo(String name, String namespace, V1alpha1PodCertificateRequest body, String pretty, String dryRun, String fieldManager, 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); } /** * (asynchronously) - * read the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle (required) + * replace the specified PodCertificateRequest + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1183,19 +3108,21 @@ public ApiResponse readClusterTrustBundleWithHttpInf +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call readClusterTrustBundleAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceNamespacedPodCertificateRequestAsync(String name, String namespace, V1alpha1PodCertificateRequest body, String pretty, String dryRun, String fieldManager, 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; } /** - * Build call for replaceClusterTrustBundle - * @param name name of the ClusterTrustBundle (required) + * Build call for replaceNamespacedPodCertificateRequestStatus + * @param name name of the PodCertificateRequest (required) + * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -1212,12 +3139,13 @@ public okhttp3.Call readClusterTrustBundleAsync(String name, String pretty, fina 401 Unauthorized - */ - public okhttp3.Call replaceClusterTrustBundleCall(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceNamespacedPodCertificateRequestStatusCall(String name, String namespace, V1alpha1PodCertificateRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1259,34 +3187,40 @@ public okhttp3.Call replaceClusterTrustBundleCall(String name, V1alpha1ClusterTr } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceClusterTrustBundleValidateBeforeCall(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceNamespacedPodCertificateRequestStatusValidateBeforeCall(String name, String namespace, V1alpha1PodCertificateRequest body, String pretty, String dryRun, String fieldManager, 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)"); } - okhttp3.Call localVarCall = replaceClusterTrustBundleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = replaceNamespacedPodCertificateRequestStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha1ClusterTrustBundle + * @return V1alpha1PodCertificateRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1296,21 +3230,22 @@ private okhttp3.Call replaceClusterTrustBundleValidateBeforeCall(String name, V1
401 Unauthorized -
*/ - public V1alpha1ClusterTrustBundle replaceClusterTrustBundle(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha1PodCertificateRequest replaceNamespacedPodCertificateRequestStatus(String name, String namespace, V1alpha1PodCertificateRequest body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedPodCertificateRequestStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha1ClusterTrustBundle> + * @return ApiResponse<V1alpha1PodCertificateRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1320,16 +3255,17 @@ public V1alpha1ClusterTrustBundle replaceClusterTrustBundle(String name, V1alpha
401 Unauthorized -
*/ - public ApiResponse replaceClusterTrustBundleWithHttpInfo(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceClusterTrustBundleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceNamespacedPodCertificateRequestStatusWithHttpInfo(String name, String namespace, V1alpha1PodCertificateRequest body, String pretty, String dryRun, String fieldManager, 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); } /** * (asynchronously) - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -1346,10 +3282,10 @@ public ApiResponse replaceClusterTrustBundleWithHttp 401 Unauthorized - */ - public okhttp3.Call replaceClusterTrustBundleAsync(String name, V1alpha1ClusterTrustBundle body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceNamespacedPodCertificateRequestStatusAsync(String name, String namespace, V1alpha1PodCertificateRequest body, String pretty, String dryRun, String fieldManager, 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; } 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..3396033343 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java @@ -0,0 +1,5939 @@ +/* +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; + + 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; + } + + /** + * Build call for createDeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createDeviceClassCall(V1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createDeviceClassValidateBeforeCall(V1DeviceClass body, String pretty, String dryRun, String fieldManager, 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)"); + } + + + okhttp3.Call localVarCall = createDeviceClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a DeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1DeviceClass createDeviceClass(V1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a DeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createDeviceClassWithHttpInfo(V1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a DeviceClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createDeviceClassAsync(V1DeviceClass body, String pretty, String dryRun, String fieldManager, 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; + } + /** + * Build call for createNamespacedResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimCall(String namespace, ResourceV1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(String namespace, ResourceV1ResourceClaim body, String pretty, String dryRun, String fieldManager, 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)"); + } + + + okhttp3.Call localVarCall = createNamespacedResourceClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ResourceV1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ResourceV1ResourceClaim createNamespacedResourceClaim(String namespace, ResourceV1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<ResourceV1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createNamespacedResourceClaimWithHttpInfo(String namespace, ResourceV1ResourceClaim body, String pretty, String dryRun, String fieldManager, 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); + } + + /** + * (asynchronously) + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimAsync(String namespace, ResourceV1ResourceClaim body, String pretty, String dryRun, String fieldManager, 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; + } + /** + * Build call for createNamespacedResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimTemplateCall(String namespace, V1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, V1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, 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)"); + } + + + okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1ResourceClaimTemplate createNamespacedResourceClaimTemplate(String namespace, V1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createNamespacedResourceClaimTemplateWithHttpInfo(String namespace, V1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, 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); + } + + /** + * (asynchronously) + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceClaimTemplateAsync(String namespace, V1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, 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; + } + /** + * Build call for createResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createResourceSliceCall(V1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createResourceSliceValidateBeforeCall(V1ResourceSlice body, String pretty, String dryRun, String fieldManager, 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)"); + } + + + okhttp3.Call localVarCall = createResourceSliceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a ResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1ResourceSlice createResourceSlice(V1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a ResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createResourceSliceWithHttpInfo(V1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a ResourceSlice + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createResourceSliceAsync(V1ResourceSlice body, String pretty, String dryRun, String fieldManager, 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; + } + /** + * Build call for deleteCollectionDeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionDeviceClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionDeviceClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionDeviceClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + 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); + } + + /** + * (asynchronously) + * delete collection of DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionDeviceClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for deleteCollectionNamespacedResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionNamespacedResourceClaim(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for deleteCollectionNamespacedResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionNamespacedResourceClaimTemplate(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for deleteCollectionResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionResourceSliceCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return localVarCall; + + } + + /** + * + * delete collection of ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status deleteCollectionResourceSlice(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * + * delete collection of ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionResourceSliceWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete collection of ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionResourceSliceAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for deleteDeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteDeviceClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDeviceClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceClass(Async)"); + } + + + okhttp3.Call localVarCall = deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return V1DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1DeviceClass deleteDeviceClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return ApiResponse<V1DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteDeviceClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteDeviceClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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; + } + /** + * Build call for deleteNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // 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)"); + } + + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return ResourceV1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ResourceV1ResourceClaim deleteNamespacedResourceClaim(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return ApiResponse<ResourceV1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for deleteNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // 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)"); + } + + + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return V1ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return ApiResponse<V1ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for deleteResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteResourceSliceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteResourceSliceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteResourceSlice(Async)"); + } + + + okhttp3.Call localVarCall = deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return V1ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1ResourceSlice deleteResourceSlice(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return ApiResponse<V1ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteResourceSliceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteResourceSliceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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; + } + /** + * Build call for getAPIResources + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + 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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + + } + + /** + * + * get available resources + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get available resources + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get available resources + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listDeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDeviceClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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", "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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listDeviceClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 V1DeviceClassList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1DeviceClassList listDeviceClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 ApiResponse<V1DeviceClassList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listDeviceClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * list or watch objects of kind DeviceClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDeviceClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for listNamespacedResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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", "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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); + } + + + okhttp3.Call localVarCall = listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 V1ResourceClaimList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ResourceClaimList listNamespacedResourceClaim(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 ApiResponse<V1ResourceClaimList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + 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); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for listNamespacedResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimTemplateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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", "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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); + } + + + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 V1ResourceClaimTemplateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ResourceClaimTemplateList listNamespacedResourceClaimTemplate(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 ApiResponse<V1ResourceClaimTemplateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + 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); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceClaimTemplateAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for listResourceClaimForAllNamespaces + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/resourceclaims"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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", "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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaim + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 V1ResourceClaimList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ResourceClaimList listResourceClaimForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaim + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 ApiResponse<V1ResourceClaimList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + 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); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaim + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for listResourceClaimTemplateForAllNamespaces + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/resourceclaimtemplates"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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", "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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 V1ResourceClaimTemplateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 ApiResponse<V1ResourceClaimTemplateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + 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); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceClaimTemplate + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for listResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceSliceCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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", "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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceSliceValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 V1ResourceSliceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ResourceSliceList listResourceSlice(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 ApiResponse<V1ResourceSliceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listResourceSliceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + 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); + } + + /** + * (asynchronously) + * list or watch objects of kind ResourceSlice + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceSliceAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for patchDeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchDeviceClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchDeviceClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // 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)"); + } + + + okhttp3.Call localVarCall = patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 V1DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1DeviceClass patchDeviceClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 ApiResponse<V1DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchDeviceClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * partially update the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchDeviceClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; + } + /** + * Build call for patchNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // 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)"); + } + + + okhttp3.Call localVarCall = patchNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 ResourceV1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ResourceV1ResourceClaim patchNamespacedResourceClaim(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 ApiResponse<ResourceV1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedResourceClaimWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); + } + + /** + * (asynchronously) + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; + } + /** + * Build call for patchNamespacedResourceClaimStatus + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // 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)"); + } + + + okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 ResourceV1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ResourceV1ResourceClaim patchNamespacedResourceClaimStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 ApiResponse<ResourceV1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); + } + + /** + * (asynchronously) + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; + } + /** + * Build call for patchNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimTemplateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // 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)"); + } + + + okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 V1ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1ResourceClaimTemplate patchNamespacedResourceClaimTemplate(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 ApiResponse<V1ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); + } + + /** + * (asynchronously) + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceClaimTemplateAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; + } + /** + * Build call for patchResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchResourceSliceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchResourceSliceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + // 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)"); + } + + + okhttp3.Call localVarCall = patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 V1ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1ResourceSlice patchResourceSlice(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 ApiResponse<V1ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchResourceSliceWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); + } + + /** + * (asynchronously) + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchResourceSliceAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; + } + /** + * Build call for readDeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readDeviceClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + 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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readDeviceClassValidateBeforeCall(String name, 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)"); + } + + + okhttp3.Call localVarCall = readDeviceClassCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1DeviceClass readDeviceClass(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readDeviceClassWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readDeviceClassWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readDeviceClassAsync(String name, 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; + } + /** + * Build call for readNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + 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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(String name, String namespace, 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)"); + } + + + okhttp3.Call localVarCall = readNamespacedResourceClaimCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ResourceV1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ResourceV1ResourceClaim readNamespacedResourceClaim(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<ResourceV1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimAsync(String name, String namespace, 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; + } + /** + * Build call for readNamespacedResourceClaimStatus + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + 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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, 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)"); + } + + + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ResourceV1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ResourceV1ResourceClaim readNamespacedResourceClaimStatus(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<ResourceV1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimStatusAsync(String name, String namespace, 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; + } + /** + * Build call for readNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + 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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, 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)"); + } + + + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); + return localVarCall; + + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ResourceClaimTemplate readNamespacedResourceClaimTemplate(String name, String namespace, String pretty) throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceClaimTemplateAsync(String name, String namespace, 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; + } + /** + * Build call for readResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readResourceSliceCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + 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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readResourceSliceValidateBeforeCall(String name, 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)"); + } + + + okhttp3.Call localVarCall = readResourceSliceCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1ResourceSlice readResourceSlice(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readResourceSliceWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readResourceSliceWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readResourceSliceAsync(String name, 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; + } + /** + * Build call for replaceDeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceDeviceClassCall(String name, V1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/deviceclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceDeviceClassValidateBeforeCall(String name, V1DeviceClass body, String pretty, String dryRun, String fieldManager, 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)"); + } + + + okhttp3.Call localVarCall = replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1DeviceClass replaceDeviceClass(String name, V1DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceDeviceClassWithHttpInfo(String name, V1DeviceClass body, String pretty, String dryRun, String fieldManager, 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); + } + + /** + * (asynchronously) + * replace the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceDeviceClassAsync(String name, V1DeviceClass body, String pretty, String dryRun, String fieldManager, 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; + } + /** + * Build call for replaceNamespacedResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimCall(String name, String namespace, ResourceV1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(String name, String namespace, ResourceV1ResourceClaim body, String pretty, String dryRun, String fieldManager, 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)"); + } + + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ResourceV1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ResourceV1ResourceClaim replaceNamespacedResourceClaim(String name, String namespace, ResourceV1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<ResourceV1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceNamespacedResourceClaimWithHttpInfo(String name, String namespace, ResourceV1ResourceClaim body, String pretty, String dryRun, String fieldManager, 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); + } + + /** + * (asynchronously) + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimAsync(String name, String namespace, ResourceV1ResourceClaim body, String pretty, String dryRun, String fieldManager, 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; + } + /** + * Build call for replaceNamespacedResourceClaimStatus + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimStatusCall(String name, String namespace, ResourceV1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, ResourceV1ResourceClaim body, String pretty, String dryRun, String fieldManager, 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)"); + } + + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ResourceV1ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ResourceV1ResourceClaim replaceNamespacedResourceClaimStatus(String name, String namespace, ResourceV1ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<ResourceV1ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, ResourceV1ResourceClaim body, String pretty, String dryRun, String fieldManager, 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); + } + + /** + * (asynchronously) + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimStatusAsync(String name, String namespace, ResourceV1ResourceClaim body, String pretty, String dryRun, String fieldManager, 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; + } + /** + * Build call for replaceNamespacedResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimTemplateCall(String name, String namespace, V1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, 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)"); + } + + + okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1ResourceClaimTemplate + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(String name, String namespace, V1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1ResourceClaimTemplate> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, 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); + } + + /** + * (asynchronously) + * 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) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(String name, String namespace, V1ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, 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; + } + /** + * Build call for replaceResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceResourceSliceCall(String name, V1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1/resourceslices/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceResourceSliceValidateBeforeCall(String name, V1ResourceSlice body, String pretty, String dryRun, String fieldManager, 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)"); + } + + + okhttp3.Call localVarCall = replaceResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1ResourceSlice replaceResourceSlice(String name, V1ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceResourceSliceWithHttpInfo(String name, V1ResourceSlice body, String pretty, String dryRun, String fieldManager, 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); + } + + /** + * (asynchronously) + * replace the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceResourceSliceAsync(String name, V1ResourceSlice body, String pretty, String dryRun, String fieldManager, 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; + } +} 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 9e667610e3..69a3e63dc2 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; @@ -67,7 +59,7 @@ public void setApiClient(ApiClient apiClient) { } /** - * Build call for createDeviceClass + * Build call for createDeviceTaintRule * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -85,11 +77,11 @@ public void setApiClient(ApiClient apiClient) { 401 Unauthorized - */ - public okhttp3.Call createDeviceClassCall(V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createDeviceTaintRuleCall(V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { 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(); @@ -131,28 +123,28 @@ public okhttp3.Call createDeviceClassCall(V1alpha3DeviceClass body, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call createDeviceClassValidateBeforeCall(V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createDeviceTaintRuleValidateBeforeCall(V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, 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)"); } - okhttp3.Call localVarCall = createDeviceClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = createDeviceTaintRuleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * create a DeviceClass + * create a DeviceTaintRule * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha3DeviceClass + * @return V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -163,20 +155,20 @@ private okhttp3.Call createDeviceClassValidateBeforeCall(V1alpha3DeviceClass bod
401 Unauthorized -
*/ - public V1alpha3DeviceClass createDeviceClass(V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha3DeviceTaintRule createDeviceTaintRule(V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createDeviceTaintRuleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * create a DeviceClass + * create a DeviceTaintRule * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha3DeviceClass> + * @return ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -187,15 +179,15 @@ public V1alpha3DeviceClass createDeviceClass(V1alpha3DeviceClass body, String pr
401 Unauthorized -
*/ - public ApiResponse createDeviceClassWithHttpInfo(V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createDeviceClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createDeviceTaintRuleWithHttpInfo(V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createDeviceTaintRuleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * create a DeviceClass + * create a DeviceTaintRule * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -213,20 +205,30 @@ public ApiResponse createDeviceClassWithHttpInfo(V1alpha3De 401 Unauthorized - */ - public okhttp3.Call createDeviceClassAsync(V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createDeviceTaintRuleAsync(V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, 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; } /** - * Build call for createDeviceTaintRule - * @param body (required) + * Build call for deleteCollectionDeviceTaintRule * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -234,12 +236,10 @@ public okhttp3.Call createDeviceClassAsync(V1alpha3DeviceClass body, String pret - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call createDeviceTaintRuleCall(V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionDeviceTaintRuleCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -251,16 +251,56 @@ public okhttp3.Call createDeviceTaintRuleCall(V1alpha3DeviceTaintRule body, Stri 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)); } Map localVarHeaderParams = new HashMap(); @@ -281,80 +321,101 @@ public okhttp3.Call createDeviceTaintRuleCall(V1alpha3DeviceTaintRule body, Stri localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createDeviceTaintRuleValidateBeforeCall(V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, 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)"); - } + private okhttp3.Call deleteCollectionDeviceTaintRuleValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createDeviceTaintRuleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * create a DeviceTaintRule - * @param body (required) + * delete collection of DeviceTaintRule * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha3DeviceTaintRule + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public V1alpha3DeviceTaintRule createDeviceTaintRule(V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createDeviceTaintRuleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1Status deleteCollectionDeviceTaintRule(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * create a DeviceTaintRule - * @param body (required) + * delete collection of DeviceTaintRule * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha3DeviceTaintRule> + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) + * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse createDeviceTaintRuleWithHttpInfo(V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createDeviceTaintRuleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteCollectionDeviceTaintRuleWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = 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); } /** * (asynchronously) - * create a DeviceTaintRule - * @param body (required) + * delete collection of DeviceTaintRule * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @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) + * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @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) + * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -362,26 +423,26 @@ public ApiResponse createDeviceTaintRuleWithHttpInfo(V1 - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call createDeviceTaintRuleAsync(V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionDeviceTaintRuleAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - 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; } /** - * Build call for createNamespacedResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) + * Build call for deleteDeviceTaintRule + * @param name name of the DeviceTaintRule (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -389,17 +450,16 @@ public okhttp3.Call createDeviceTaintRuleAsync(V1alpha3DeviceTaintRule body, Str -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call createNamespacedResourceClaimCall(String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteDeviceTaintRuleCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -411,12 +471,20 @@ public okhttp3.Call createNamespacedResourceClaimCall(String namespace, V1alpha3 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)); } Map localVarHeaderParams = new HashMap(); @@ -437,252 +505,87 @@ public okhttp3.Call createNamespacedResourceClaimCall(String namespace, V1alpha3 localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedResourceClaimValidateBeforeCall(String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, 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)"); - } + private okhttp3.Call deleteDeviceTaintRuleValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceClaim(Async)"); + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceTaintRule(Async)"); } - okhttp3.Call localVarCall = createNamespacedResourceClaimCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = deleteDeviceTaintRuleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * - * create a ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) + * delete a DeviceTaintRule + * @param name name of the DeviceTaintRule (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha3ResourceClaim + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public V1alpha3ResourceClaim createNamespacedResourceClaim(String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha3DeviceTaintRule deleteDeviceTaintRule(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * - * create a ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) + * delete a DeviceTaintRule + * @param name name of the DeviceTaintRule (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha3ResourceClaim> + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse createNamespacedResourceClaimWithHttpInfo(String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createNamespacedResourceClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteDeviceTaintRuleWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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); } /** * (asynchronously) - * create a ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) + * delete a DeviceTaintRule + * @param name name of the DeviceTaintRule (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createNamespacedResourceClaimAsync(String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, 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; - } - /** - * Build call for createNamespacedResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call createNamespacedResourceClaimTemplateCall(String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, 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)"); - } - - - okhttp3.Call localVarCall = createNamespacedResourceClaimTemplateCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * create a ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha3ResourceClaimTemplate - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha3ResourceClaimTemplate createNamespacedResourceClaimTemplate(String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * create a ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha3ResourceClaimTemplate> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse createNamespacedResourceClaimTemplateWithHttpInfo(String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, 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); - } - - /** - * (asynchronously) - * create a ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -690,25 +593,19 @@ public ApiResponse createNamespacedResourceClaimT -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call createNamespacedResourceClaimTemplateAsync(String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteDeviceTaintRuleAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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; } /** - * Build call for createResourceSlice - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * Build call for getAPIResources * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -716,35 +613,17 @@ public okhttp3.Call createNamespacedResourceClaimTemplateAsync(String namespace, - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call createResourceSliceCall(V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + 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(); - 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)); - } - Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -757,86 +636,62 @@ public okhttp3.Call createResourceSliceCall(V1alpha3ResourceSlice body, String p } final String[] localVarContentTypes = { - "application/json" + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call createResourceSliceValidateBeforeCall(V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, 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)"); - } + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createResourceSliceCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); return localVarCall; } /** * - * create a ResourceSlice - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha3ResourceSlice + * get available resources + * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public V1alpha3ResourceSlice createResourceSlice(V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1APIResourceList getAPIResources() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); return localVarResp.getData(); } /** * - * create a ResourceSlice - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha3ResourceSlice> + * get available resources + * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse createResourceSliceWithHttpInfo(V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createResourceSliceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * create a ResourceSlice - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * get available resources * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -844,35 +699,29 @@ public ApiResponse createResourceSliceWithHttpInfo(V1alph - -
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call createResourceSliceAsync(V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public 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; } /** - * Build call for deleteCollectionDeviceClass + * Build call for listDeviceTaintRule * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -883,5608 +732,11 @@ public okhttp3.Call createResourceSliceAsync(V1alpha3ResourceSlice body, String 401 Unauthorized - */ - public okhttp3.Call deleteCollectionDeviceClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; - - } - - /** - * - * delete collection of DeviceClass - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status deleteCollectionDeviceClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * - * delete collection of DeviceClass - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionDeviceClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - 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); - } - - /** - * (asynchronously) - * delete collection of DeviceClass - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionDeviceClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - 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; - } - /** - * Build call for deleteCollectionDeviceTaintRule - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionDeviceTaintRuleCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionDeviceTaintRuleValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; - - } - - /** - * - * delete collection of DeviceTaintRule - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status deleteCollectionDeviceTaintRule(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * - * delete collection of DeviceTaintRule - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionDeviceTaintRuleWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = 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); - } - - /** - * (asynchronously) - * delete collection of DeviceTaintRule - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionDeviceTaintRuleAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - 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; - } - /** - * Build call for deleteCollectionNamespacedResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionNamespacedResourceClaimCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); - } - - - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; - - } - - /** - * - * delete collection of ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status deleteCollectionNamespacedResourceClaim(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * - * delete collection of ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete collection of ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - 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; - } - /** - * Build call for deleteCollectionNamespacedResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); - } - - - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; - - } - - /** - * - * delete collection of ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status deleteCollectionNamespacedResourceClaimTemplate(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * - * delete collection of ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete collection of ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(String namespace, String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - 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; - } - /** - * Build call for deleteCollectionResourceSlice - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionResourceSliceCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - return localVarCall; - - } - - /** - * - * delete collection of ResourceSlice - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status deleteCollectionResourceSlice(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * - * delete collection of ResourceSlice - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse deleteCollectionResourceSliceWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete collection of ResourceSlice - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @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) - * @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) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @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) - * @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) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call deleteCollectionResourceSliceAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - 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; - } - /** - * Build call for deleteDeviceClass - * @param name name of the DeviceClass (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteDeviceClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDeviceClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceClass(Async)"); - } - - - okhttp3.Call localVarCall = deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; - - } - - /** - * - * delete a DeviceClass - * @param name name of the DeviceClass (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @return V1alpha3DeviceClass - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha3DeviceClass deleteDeviceClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * - * delete a DeviceClass - * @param name name of the DeviceClass (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @return ApiResponse<V1alpha3DeviceClass> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse deleteDeviceClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete a DeviceClass - * @param name name of the DeviceClass (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteDeviceClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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; - } - /** - * Build call for deleteDeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteDeviceTaintRuleCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDeviceTaintRuleValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceTaintRule(Async)"); - } - - - okhttp3.Call localVarCall = deleteDeviceTaintRuleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; - - } - - /** - * - * delete a DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @return V1alpha3DeviceTaintRule - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha3DeviceTaintRule deleteDeviceTaintRule(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * - * delete a DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @return ApiResponse<V1alpha3DeviceTaintRule> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse deleteDeviceTaintRuleWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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); - } - - /** - * (asynchronously) - * delete a DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteDeviceTaintRuleAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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; - } - /** - * Build call for deleteNamespacedResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteNamespacedResourceClaimCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // 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)"); - } - - - okhttp3.Call localVarCall = deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; - - } - - /** - * - * delete a ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @return V1alpha3ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha3ResourceClaim deleteNamespacedResourceClaim(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * - * delete a ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @return ApiResponse<V1alpha3ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse deleteNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete a ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteNamespacedResourceClaimAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - 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; - } - /** - * Build call for deleteNamespacedResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // 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)"); - } - - - okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; - - } - - /** - * - * delete a ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @return V1alpha3ResourceClaimTemplate - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha3ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * - * delete a ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @return ApiResponse<V1alpha3ResourceClaimTemplate> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse deleteNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete a ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - 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; - } - /** - * Build call for deleteResourceSlice - * @param name name of the ResourceSlice (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteResourceSliceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteResourceSliceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteResourceSlice(Async)"); - } - - - okhttp3.Call localVarCall = deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; - - } - - /** - * - * delete a ResourceSlice - * @param name name of the ResourceSlice (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @return V1alpha3ResourceSlice - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha3ResourceSlice deleteResourceSlice(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * - * delete a ResourceSlice - * @param name name of the ResourceSlice (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @return ApiResponse<V1alpha3ResourceSlice> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse deleteResourceSliceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * delete a ResourceSlice - * @param name name of the ResourceSlice (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @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) - * @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) - * @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) - * @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) - * @param body (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call deleteResourceSliceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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; - } - /** - * Build call for getAPIResources - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { - 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); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getAPIResourcesCall(_callback); - return localVarCall; - - } - - /** - * - * get available resources - * @return V1APIResourceList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * - * get available resources - * @return ApiResponse<V1APIResourceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * get available resources - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listDeviceClass - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listDeviceClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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", "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); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listDeviceClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind DeviceClass - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 V1alpha3DeviceClassList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3DeviceClassList listDeviceClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind DeviceClass - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 ApiResponse<V1alpha3DeviceClassList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listDeviceClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * list or watch objects of kind DeviceClass - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listDeviceClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - 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; - } - /** - * Build call for listDeviceTaintRule - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listDeviceTaintRuleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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", "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); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listDeviceTaintRuleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind DeviceTaintRule - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 V1alpha3DeviceTaintRuleList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3DeviceTaintRuleList listDeviceTaintRule(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind DeviceTaintRule - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 ApiResponse<V1alpha3DeviceTaintRuleList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listDeviceTaintRuleWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * list or watch objects of kind DeviceTaintRule - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listDeviceTaintRuleAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - 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; - } - /** - * Build call for listNamespacedResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listNamespacedResourceClaimCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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", "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); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); - } - - - okhttp3.Call localVarCall = listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 V1alpha3ResourceClaimList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceClaimList listNamespacedResourceClaim(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 ApiResponse<V1alpha3ResourceClaimList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listNamespacedResourceClaimWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - 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); - } - - /** - * (asynchronously) - * list or watch objects of kind ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listNamespacedResourceClaimAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - 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; - } - /** - * Build call for listNamespacedResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listNamespacedResourceClaimTemplateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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", "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); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); - } - - - okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 V1alpha3ResourceClaimTemplateList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceClaimTemplateList listNamespacedResourceClaimTemplate(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 ApiResponse<V1alpha3ResourceClaimTemplateList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - 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); - } - - /** - * (asynchronously) - * list or watch objects of kind ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listNamespacedResourceClaimTemplateAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - 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; - } - /** - * Build call for listResourceClaimForAllNamespaces - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listResourceClaimForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceclaims"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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", "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); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind ResourceClaim - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 V1alpha3ResourceClaimList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceClaimList listResourceClaimForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind ResourceClaim - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 ApiResponse<V1alpha3ResourceClaimList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - 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); - } - - /** - * (asynchronously) - * list or watch objects of kind ResourceClaim - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listResourceClaimForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - 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; - } - /** - * Build call for listResourceClaimTemplateForAllNamespaces - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceclaimtemplates"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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", "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); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind ResourceClaimTemplate - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 V1alpha3ResourceClaimTemplateList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind ResourceClaimTemplate - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 ApiResponse<V1alpha3ResourceClaimTemplateList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - 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); - } - - /** - * (asynchronously) - * list or watch objects of kind ResourceClaimTemplate - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - 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; - } - /** - * Build call for listResourceSlice - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listResourceSliceCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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", "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); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceSliceValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - return localVarCall; - - } - - /** - * - * list or watch objects of kind ResourceSlice - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 V1alpha3ResourceSliceList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceSliceList listResourceSlice(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * - * list or watch objects of kind ResourceSlice - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @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 ApiResponse<V1alpha3ResourceSliceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse listResourceSliceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - 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); - } - - /** - * (asynchronously) - * list or watch objects of kind ResourceSlice - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @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) - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call listResourceSliceAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - 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; - } - /** - * Build call for patchDeviceClass - * @param name name of the DeviceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchDeviceClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchDeviceClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // 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)"); - } - - - okhttp3.Call localVarCall = patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update the specified DeviceClass - * @param name name of the DeviceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 V1alpha3DeviceClass - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3DeviceClass patchDeviceClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update the specified DeviceClass - * @param name name of the DeviceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 ApiResponse<V1alpha3DeviceClass> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchDeviceClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * partially update the specified DeviceClass - * @param name name of the DeviceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchDeviceClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; - } - /** - * Build call for patchDeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchDeviceTaintRuleCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchDeviceTaintRuleValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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)"); - } - - - okhttp3.Call localVarCall = patchDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update the specified DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 V1alpha3DeviceTaintRule - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3DeviceTaintRule patchDeviceTaintRule(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update the specified DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 ApiResponse<V1alpha3DeviceTaintRule> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchDeviceTaintRuleWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); - } - - /** - * (asynchronously) - * partially update the specified DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchDeviceTaintRuleAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; - } - /** - * Build call for patchNamespacedResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedResourceClaimCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // 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)"); - } - - - okhttp3.Call localVarCall = patchNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 V1alpha3ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3ResourceClaim patchNamespacedResourceClaim(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 ApiResponse<V1alpha3ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchNamespacedResourceClaimWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); - } - - /** - * (asynchronously) - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedResourceClaimAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; - } - /** - * Build call for patchNamespacedResourceClaimStatus - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedResourceClaimStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // 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)"); - } - - - okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 V1alpha3ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3ResourceClaim patchNamespacedResourceClaimStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 ApiResponse<V1alpha3ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); - } - - /** - * (asynchronously) - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedResourceClaimStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; - } - /** - * Build call for patchNamespacedResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedResourceClaimTemplateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // 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)"); - } - - - okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 V1alpha3ResourceClaimTemplate - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3ResourceClaimTemplate patchNamespacedResourceClaimTemplate(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 ApiResponse<V1alpha3ResourceClaimTemplate> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); - } - - /** - * (asynchronously) - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchNamespacedResourceClaimTemplateAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; - } - /** - * Build call for patchResourceSlice - * @param name name of the ResourceSlice (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchResourceSliceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchResourceSliceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { - - // 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)"); - } - - - okhttp3.Call localVarCall = patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - - } - - /** - * - * partially update the specified ResourceSlice - * @param name name of the ResourceSlice (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 V1alpha3ResourceSlice - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3ResourceSlice patchResourceSlice(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * - * partially update the specified ResourceSlice - * @param name name of the ResourceSlice (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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 ApiResponse<V1alpha3ResourceSlice> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse patchResourceSliceWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); - } - - /** - * (asynchronously) - * partially update the specified ResourceSlice - * @param name name of the ResourceSlice (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @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) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call patchResourceSliceAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; - } - /** - * Build call for readDeviceClass - * @param name name of the DeviceClass (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readDeviceClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - 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); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readDeviceClassValidateBeforeCall(String name, 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)"); - } - - - okhttp3.Call localVarCall = readDeviceClassCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read the specified DeviceClass - * @param name name of the DeviceClass (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return V1alpha3DeviceClass - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3DeviceClass readDeviceClass(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readDeviceClassWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read the specified DeviceClass - * @param name name of the DeviceClass (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return ApiResponse<V1alpha3DeviceClass> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readDeviceClassWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read the specified DeviceClass - * @param name name of the DeviceClass (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readDeviceClassAsync(String name, 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; - } - /** - * Build call for readDeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readDeviceTaintRuleCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - 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); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readDeviceTaintRuleValidateBeforeCall(String name, 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)"); - } - - - okhttp3.Call localVarCall = readDeviceTaintRuleCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read the specified DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return V1alpha3DeviceTaintRule - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3DeviceTaintRule readDeviceTaintRule(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readDeviceTaintRuleWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read the specified DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return ApiResponse<V1alpha3DeviceTaintRule> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readDeviceTaintRuleWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readDeviceTaintRuleValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read the specified DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readDeviceTaintRuleAsync(String name, 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; - } - /** - * Build call for readNamespacedResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedResourceClaimCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - 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); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(String name, String namespace, 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)"); - } - - - okhttp3.Call localVarCall = readNamespacedResourceClaimCall(name, namespace, pretty, _callback); - return localVarCall; - - } - - /** - * - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return V1alpha3ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceClaim readNamespacedResourceClaim(String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return ApiResponse<V1alpha3ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readNamespacedResourceClaimWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedResourceClaimAsync(String name, String namespace, 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; - } - /** - * Build call for readNamespacedResourceClaimStatus - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedResourceClaimStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - 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); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, 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)"); - } - - - okhttp3.Call localVarCall = readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); - return localVarCall; - - } - - /** - * - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return V1alpha3ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceClaim readNamespacedResourceClaimStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return ApiResponse<V1alpha3ResourceClaim> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedResourceClaimStatusAsync(String name, String namespace, 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; - } - /** - * Build call for readNamespacedResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedResourceClaimTemplateCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - 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); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, 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)"); - } - - - okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); - return localVarCall; - - } - - /** - * - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return V1alpha3ResourceClaimTemplate - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceClaimTemplate readNamespacedResourceClaimTemplate(String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return ApiResponse<V1alpha3ResourceClaimTemplate> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * 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) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readNamespacedResourceClaimTemplateAsync(String name, String namespace, 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; - } - /** - * Build call for readResourceSlice - * @param name name of the ResourceSlice (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readResourceSliceCall(String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourceslices/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - 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); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readResourceSliceValidateBeforeCall(String name, 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)"); - } - - - okhttp3.Call localVarCall = readResourceSliceCall(name, pretty, _callback); - return localVarCall; - - } - - /** - * - * read the specified ResourceSlice - * @param name name of the ResourceSlice (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return V1alpha3ResourceSlice - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha3ResourceSlice readResourceSlice(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readResourceSliceWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * - * read the specified ResourceSlice - * @param name name of the ResourceSlice (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return ApiResponse<V1alpha3ResourceSlice> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse readResourceSliceWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) - * read the specified ResourceSlice - * @param name name of the ResourceSlice (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call readResourceSliceAsync(String name, 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; - } - /** - * Build call for replaceDeviceClass - * @param name name of the DeviceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceDeviceClassCall(String name, V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceDeviceClassValidateBeforeCall(String name, V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, 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)"); - } - - - okhttp3.Call localVarCall = replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace the specified DeviceClass - * @param name name of the DeviceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha3DeviceClass - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3DeviceClass replaceDeviceClass(String name, V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace the specified DeviceClass - * @param name name of the DeviceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha3DeviceClass> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replaceDeviceClassWithHttpInfo(String name, V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, 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); - } - - /** - * (asynchronously) - * replace the specified DeviceClass - * @param name name of the DeviceClass (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceDeviceClassAsync(String name, V1alpha3DeviceClass body, String pretty, String dryRun, String fieldManager, 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; - } - /** - * Build call for replaceDeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceDeviceTaintRuleCall(String name, V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - 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)); - } - - 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 = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceDeviceTaintRuleValidateBeforeCall(String name, V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, 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)"); - } - - - okhttp3.Call localVarCall = replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - - } - - /** - * - * replace the specified DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha3DeviceTaintRule - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha3DeviceTaintRule replaceDeviceTaintRule(String name, V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * - * replace the specified DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha3DeviceTaintRule> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse replaceDeviceTaintRuleWithHttpInfo(String name, V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, 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); - } - - /** - * (asynchronously) - * replace the specified DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceDeviceTaintRuleAsync(String name, V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, 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; - } - /** - * Build call for replaceNamespacedResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call replaceNamespacedResourceClaimCall(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; + public okhttp3.Call listDeviceTaintRuleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6492,23 +744,51 @@ public okhttp3.Call replaceNamespacedResourceClaimCall(String name, String names localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (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)); } 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" + "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) { @@ -6516,100 +796,95 @@ public okhttp3.Call replaceNamespacedResourceClaimCall(String name, String names } final String[] localVarContentTypes = { - "application/json" + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceClaimValidateBeforeCall(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - // 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)"); - } + private okhttp3.Call listDeviceTaintRuleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); return localVarCall; } /** * - * 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) + * list or watch objects of kind DeviceTaintRule * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha3ResourceClaim + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 V1alpha3DeviceTaintRuleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha3ResourceClaim replaceNamespacedResourceClaim(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha3DeviceTaintRuleList listDeviceTaintRule(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * - * 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) + * list or watch objects of kind DeviceTaintRule * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha3ResourceClaim> + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 ApiResponse<V1alpha3DeviceTaintRuleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse replaceNamespacedResourceClaimWithHttpInfo(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse listDeviceTaintRuleWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * 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) + * list or watch objects of kind DeviceTaintRule * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -6617,26 +892,25 @@ public ApiResponse replaceNamespacedResourceClaimWithHttp -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call replaceNamespacedResourceClaimAsync(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listDeviceTaintRuleAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _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; } /** - * Build call for replaceNamespacedResourceClaimStatus - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * Build call for patchDeviceTaintRule + * @param name name of the DeviceTaintRule (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6648,13 +922,12 @@ public okhttp3.Call replaceNamespacedResourceClaimAsync(String name, String name 401 Unauthorized - */ - public okhttp3.Call replaceNamespacedResourceClaimStatusCall(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchDeviceTaintRuleCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6674,6 +947,10 @@ public okhttp3.Call replaceNamespacedResourceClaimStatusCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -6692,44 +969,39 @@ public okhttp3.Call replaceNamespacedResourceClaimStatusCall(String name, String localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchDeviceTaintRuleValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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)"); } - okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = patchDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); return localVarCall; } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha3ResourceClaim + * @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 V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6739,22 +1011,22 @@ private okhttp3.Call replaceNamespacedResourceClaimStatusValidateBeforeCall(Stri
401 Unauthorized -
*/ - public V1alpha3ResourceClaim replaceNamespacedResourceClaimStatus(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha3DeviceTaintRule patchDeviceTaintRule(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha3ResourceClaim> + * @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 ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6764,22 +1036,22 @@ public V1alpha3ResourceClaim replaceNamespacedResourceClaimStatus(String name, S
401 Unauthorized -
*/ - public ApiResponse replaceNamespacedResourceClaimStatusWithHttpInfo(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse patchDeviceTaintRuleWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); } /** * (asynchronously) - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -6791,22 +1063,17 @@ public ApiResponse replaceNamespacedResourceClaimStatusWi 401 Unauthorized - */ - public okhttp3.Call replaceNamespacedResourceClaimStatusAsync(String name, String namespace, V1alpha3ResourceClaim body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchDeviceTaintRuleAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; } /** - * Build call for replaceNamespacedResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) + * Build call for readDeviceTaintRule + * @param name name of the DeviceTaintRule (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6814,17 +1081,15 @@ public okhttp3.Call replaceNamespacedResourceClaimStatusAsync(String name, Strin -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call replaceNamespacedResourceClaimTemplateCall(String name, String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = body; + public okhttp3.Call readDeviceTaintRuleCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6832,18 +1097,6 @@ public okhttp3.Call replaceNamespacedResourceClaimTemplateCall(String name, 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)); - } - Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -6856,100 +1109,73 @@ public okhttp3.Call replaceNamespacedResourceClaimTemplateCall(String name, Stri } final String[] localVarContentTypes = { - "application/json" + }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedResourceClaimTemplateValidateBeforeCall(String name, String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceTaintRuleValidateBeforeCall(String name, 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)"); } - okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = readDeviceTaintRuleCall(name, pretty, _callback); return localVarCall; } /** * - * 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) + * read the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha3ResourceClaimTemplate + * @return V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha3ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(String name, String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha3DeviceTaintRule readDeviceTaintRule(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readDeviceTaintRuleWithHttpInfo(name, pretty); return localVarResp.getData(); } /** * - * 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) + * read the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha3ResourceClaimTemplate> + * @return ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse replaceNamespacedResourceClaimTemplateWithHttpInfo(String name, String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse readDeviceTaintRuleWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceTaintRuleValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * 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) + * read the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -6957,20 +1183,19 @@ public ApiResponse replaceNamespacedResourceClaim -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(String name, String namespace, V1alpha3ResourceClaimTemplate body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call readDeviceTaintRuleAsync(String name, 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; } /** - * Build call for replaceResourceSlice - * @param name name of the ResourceSlice (required) + * Build call for replaceDeviceTaintRule + * @param name name of the DeviceTaintRule (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -6987,11 +1212,11 @@ public okhttp3.Call replaceNamespacedResourceClaimTemplateAsync(String name, Str 401 Unauthorized - */ - public okhttp3.Call replaceResourceSliceCall(String name, V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceDeviceTaintRuleCall(String name, V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { 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}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -7034,34 +1259,34 @@ public okhttp3.Call replaceResourceSliceCall(String name, V1alpha3ResourceSlice } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceResourceSliceValidateBeforeCall(String name, V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleValidateBeforeCall(String name, V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, 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)"); } - okhttp3.Call localVarCall = replaceResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + okhttp3.Call localVarCall = replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return V1alpha3ResourceSlice + * @return V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7071,21 +1296,21 @@ private okhttp3.Call replaceResourceSliceValidateBeforeCall(String name, V1alpha
401 Unauthorized -
*/ - public V1alpha3ResourceSlice replaceResourceSlice(String name, V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha3DeviceTaintRule replaceDeviceTaintRule(String name, V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return ApiResponse<V1alpha3ResourceSlice> + * @return ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7095,16 +1320,16 @@ public V1alpha3ResourceSlice replaceResourceSlice(String name, V1alpha3ResourceS
401 Unauthorized -
*/ - public ApiResponse replaceResourceSliceWithHttpInfo(String name, V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse replaceDeviceTaintRuleWithHttpInfo(String name, V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, 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); } /** * (asynchronously) - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -7121,10 +1346,10 @@ public ApiResponse replaceResourceSliceWithHttpInfo(Strin 401 Unauthorized - */ - public okhttp3.Call replaceResourceSliceAsync(String name, V1alpha3ResourceSlice body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + public okhttp3.Call replaceDeviceTaintRuleAsync(String name, V1alpha3DeviceTaintRule body, String pretty, String dryRun, String fieldManager, 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; } 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 ef66281167..5d7d65efa7 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; @@ -846,6 +848,160 @@ public okhttp3.Call createVolumeAttachmentAsync(V1VolumeAttachment body, String localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for createVolumeAttributesClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createVolumeAttributesClassCall(V1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1/volumeattributesclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createVolumeAttributesClassValidateBeforeCall(V1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, 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)"); + } + + + okhttp3.Call localVarCall = createVolumeAttributesClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * create a VolumeAttributesClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1VolumeAttributesClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1VolumeAttributesClass createVolumeAttributesClass(V1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = createVolumeAttributesClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * create a VolumeAttributesClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1VolumeAttributesClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse createVolumeAttributesClassWithHttpInfo(V1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createVolumeAttributesClassValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * create a VolumeAttributesClass + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createVolumeAttributesClassAsync(V1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, 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; + } /** * Build call for deleteCSIDriver * @param name name of the CSIDriver (required) @@ -2304,15 +2460,21 @@ public okhttp3.Call deleteCollectionVolumeAttachmentAsync(String pretty, String return localVarCall; } /** - * Build call for deleteNamespacedCSIStorageCapacity - * @param name name of the CSIStorageCapacity (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * Build call for deleteCollectionVolumeAttributesClass * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @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) * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @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) * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2321,17 +2483,14 @@ public okhttp3.Call deleteCollectionVolumeAttachmentAsync(String pretty, String -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionVolumeAttributesClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/storage.k8s.io/v1/volumeattributesclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2339,10 +2498,18 @@ public okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String n 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)); } @@ -2351,6 +2518,14 @@ public okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String n 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)); } @@ -2359,6 +2534,22 @@ public okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String n 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)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -2381,35 +2572,31 @@ public okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String n } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedCSIStorageCapacityValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - // 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)"); - } + private okhttp3.Call deleteCollectionVolumeAttributesClassValidateBeforeCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); return localVarCall; } /** * - * delete a CSIStorageCapacity - * @param name name of the CSIStorageCapacity (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * delete collection of VolumeAttributesClass * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @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) * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @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) * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2417,26 +2604,31 @@ private okhttp3.Call deleteNamespacedCSIStorageCapacityValidateBeforeCall(String -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedCSIStorageCapacity(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1Status deleteCollectionVolumeAttributesClass(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** * - * delete a CSIStorageCapacity - * @param name name of the CSIStorageCapacity (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * delete collection of VolumeAttributesClass * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @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) * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @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) * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2444,27 +2636,32 @@ public V1Status deleteNamespacedCSIStorageCapacity(String name, String namespace -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedCSIStorageCapacityWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + public ApiResponse deleteCollectionVolumeAttributesClassWithHttpInfo(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { + 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); } /** * (asynchronously) - * delete a CSIStorageCapacity - * @param name name of the CSIStorageCapacity (required) - * @param namespace object name and auth scope, such as for teams and projects (required) + * delete collection of VolumeAttributesClass * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @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) * @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) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @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) * @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) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -2473,20 +2670,20 @@ public ApiResponse deleteNamespacedCSIStorageCapacityWithHttpInfo(Stri -
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteNamespacedCSIStorageCapacityAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionVolumeAttributesClassAsync(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - 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; } /** - * Build call for deleteStorageClass - * @param name name of the StorageClass (required) + * Build call for deleteNamespacedCSIStorageCapacity + * @param name name of the CSIStorageCapacity (required) + * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -2505,12 +2702,13 @@ public okhttp3.Call deleteNamespacedCSIStorageCapacityAsync(String name, String 401 Unauthorized - */ - public okhttp3.Call deleteStorageClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteNamespacedCSIStorageCapacityCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/storageclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2560,23 +2758,373 @@ public okhttp3.Call deleteStorageClassCall(String name, String pretty, String dr } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteStorageClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedCSIStorageCapacityValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteStorageClass(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedCSIStorageCapacity(Async)"); } - - okhttp3.Call localVarCall = deleteStorageClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - return localVarCall; + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedCSIStorageCapacity(Async)"); + } + + + okhttp3.Call localVarCall = deleteNamespacedCSIStorageCapacityCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a CSIStorageCapacity + * @param name name of the CSIStorageCapacity (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status deleteNamespacedCSIStorageCapacity(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a CSIStorageCapacity + * @param name name of the CSIStorageCapacity (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedCSIStorageCapacityWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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); + } + + /** + * (asynchronously) + * delete a CSIStorageCapacity + * @param name name of the CSIStorageCapacity (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedCSIStorageCapacityAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for deleteStorageClass + * @param name name of the StorageClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteStorageClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1/storageclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteStorageClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteStorageClass(Async)"); + } + + + okhttp3.Call localVarCall = deleteStorageClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + + } + + /** + * + * delete a StorageClass + * @param name name of the StorageClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return V1StorageClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1StorageClass deleteStorageClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * + * delete a StorageClass + * @param name name of the StorageClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @return ApiResponse<V1StorageClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteStorageClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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); + } + + /** + * (asynchronously) + * delete a StorageClass + * @param name name of the StorageClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteStorageClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteVolumeAttachment + * @param name name of the VolumeAttachment (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @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) + * @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) + * @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) + * @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) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteVolumeAttachment(Async)"); + } + + + okhttp3.Call localVarCall = deleteVolumeAttachmentCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; } /** * - * delete a StorageClass - * @param name name of the StorageClass (required) + * delete a VolumeAttachment + * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -2584,7 +3132,7 @@ private okhttp3.Call deleteStorageClassValidateBeforeCall(String name, String pr * @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) * @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) * @param body (optional) - * @return V1StorageClass + * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2594,15 +3142,15 @@ private okhttp3.Call deleteStorageClassValidateBeforeCall(String name, String pr
401 Unauthorized -
*/ - public V1StorageClass deleteStorageClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1VolumeAttachment deleteVolumeAttachment(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * - * delete a StorageClass - * @param name name of the StorageClass (required) + * delete a VolumeAttachment + * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -2610,7 +3158,7 @@ public V1StorageClass deleteStorageClass(String name, String pretty, String dryR * @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) * @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) * @param body (optional) - * @return ApiResponse<V1StorageClass> + * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2620,16 +3168,16 @@ public V1StorageClass deleteStorageClass(String name, String pretty, String dryR
401 Unauthorized -
*/ - public ApiResponse deleteStorageClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteStorageClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteVolumeAttachmentWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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); } /** * (asynchronously) - * delete a StorageClass - * @param name name of the StorageClass (required) + * delete a VolumeAttachment + * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -2648,16 +3196,16 @@ public ApiResponse deleteStorageClassWithHttpInfo(String name, S 401 Unauthorized - */ - public okhttp3.Call deleteStorageClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteVolumeAttachmentAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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 = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteVolumeAttachment - * @param name name of the VolumeAttachment (required) + * Build call for deleteVolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -2676,11 +3224,11 @@ public okhttp3.Call deleteStorageClassAsync(String name, String pretty, String d 401 Unauthorized - */ - public okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteVolumeAttributesClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}" + String localVarPath = "/apis/storage.k8s.io/v1/volumeattributesclasses/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2731,23 +3279,23 @@ public okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteVolumeAttributesClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteVolumeAttachment(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteVolumeAttributesClass(Async)"); } - okhttp3.Call localVarCall = deleteVolumeAttachmentCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + okhttp3.Call localVarCall = deleteVolumeAttributesClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); return localVarCall; } /** * - * delete a VolumeAttachment - * @param name name of the VolumeAttachment (required) + * delete a VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -2755,7 +3303,7 @@ private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(String name, Strin * @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) * @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) * @param body (optional) - * @return V1VolumeAttachment + * @return V1VolumeAttributesClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2765,15 +3313,15 @@ private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(String name, Strin
401 Unauthorized -
*/ - public V1VolumeAttachment deleteVolumeAttachment(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - ApiResponse localVarResp = deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1VolumeAttributesClass deleteVolumeAttributesClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteVolumeAttributesClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** * - * delete a VolumeAttachment - * @param name name of the VolumeAttachment (required) + * delete a VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -2781,7 +3329,7 @@ public V1VolumeAttachment deleteVolumeAttachment(String name, String pretty, Str * @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) * @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) * @param body (optional) - * @return ApiResponse<V1VolumeAttachment> + * @return ApiResponse<V1VolumeAttributesClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2791,16 +3339,16 @@ public V1VolumeAttachment deleteVolumeAttachment(String name, String pretty, Str
401 Unauthorized -
*/ - public ApiResponse deleteVolumeAttachmentWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteVolumeAttributesClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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); } /** * (asynchronously) - * delete a VolumeAttachment - * @param name name of the VolumeAttachment (required) + * delete a VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @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) @@ -2819,10 +3367,10 @@ public ApiResponse deleteVolumeAttachmentWithHttpInfo(String 401 Unauthorized - */ - public okhttp3.Call deleteVolumeAttachmentAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteVolumeAttributesClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, Boolean orphanDependents, String propagationPolicy, 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 = deleteVolumeAttributesClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3609,23 +4157,218 @@ public okhttp3.Call listNamespacedCSIStorageCapacityCall(String namespace, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedCSIStorageCapacityValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedCSIStorageCapacity(Async)"); - } + private okhttp3.Call listNamespacedCSIStorageCapacityValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedCSIStorageCapacity(Async)"); + } + + + okhttp3.Call localVarCall = listNamespacedCSIStorageCapacityCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return localVarCall; + + } + + /** + * + * list or watch objects of kind CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 V1CSIStorageCapacityList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1CSIStorageCapacityList listNamespacedCSIStorageCapacity(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * + * list or watch objects of kind CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @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 ApiResponse<V1CSIStorageCapacityList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedCSIStorageCapacityWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + 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); + } + + /** + * (asynchronously) + * list or watch objects of kind CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedCSIStorageCapacityAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + 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; + } + /** + * Build call for listStorageClass + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @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) + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listStorageClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1/storageclasses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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", "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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listStorageClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedCSIStorageCapacityCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listStorageClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); return localVarCall; } /** * - * list or watch objects of kind CSIStorageCapacity - * @param namespace object name and auth scope, such as for teams and projects (required) + * list or watch objects of kind StorageClass * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -3637,7 +4380,7 @@ private okhttp3.Call listNamespacedCSIStorageCapacityValidateBeforeCall(String n * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @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 V1CSIStorageCapacityList + * @return V1StorageClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3646,15 +4389,14 @@ private okhttp3.Call listNamespacedCSIStorageCapacityValidateBeforeCall(String n
401 Unauthorized -
*/ - public V1CSIStorageCapacityList listNamespacedCSIStorageCapacity(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1StorageClassList listStorageClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * - * list or watch objects of kind CSIStorageCapacity - * @param namespace object name and auth scope, such as for teams and projects (required) + * list or watch objects of kind StorageClass * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -3666,7 +4408,7 @@ public V1CSIStorageCapacityList listNamespacedCSIStorageCapacity(String namespac * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @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 ApiResponse<V1CSIStorageCapacityList> + * @return ApiResponse<V1StorageClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3675,16 +4417,15 @@ public V1CSIStorageCapacityList listNamespacedCSIStorageCapacity(String namespac
401 Unauthorized -
*/ - public ApiResponse listNamespacedCSIStorageCapacityWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse listStorageClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + 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); } /** * (asynchronously) - * list or watch objects of kind CSIStorageCapacity - * @param namespace object name and auth scope, such as for teams and projects (required) + * list or watch objects of kind StorageClass * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -3706,15 +4447,15 @@ public ApiResponse listNamespacedCSIStorageCapacityWit 401 Unauthorized - */ - public okhttp3.Call listNamespacedCSIStorageCapacityAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listStorageClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - 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 = 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; } /** - * Build call for listStorageClass + * Build call for listVolumeAttachment * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -3736,11 +4477,11 @@ public okhttp3.Call listNamespacedCSIStorageCapacityAsync(String namespace, Stri 401 Unauthorized - */ - public okhttp3.Call listStorageClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listVolumeAttachmentCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/storageclasses"; + String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3810,17 +4551,17 @@ public okhttp3.Call listStorageClassCall(String pretty, Boolean allowWatchBookma } @SuppressWarnings("rawtypes") - private okhttp3.Call listStorageClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttachmentValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listStorageClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); return localVarCall; } /** * - * list or watch objects of kind StorageClass + * list or watch objects of kind VolumeAttachment * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -3832,7 +4573,7 @@ private okhttp3.Call listStorageClassValidateBeforeCall(String pretty, Boolean a * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @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 V1StorageClassList + * @return V1VolumeAttachmentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3841,14 +4582,14 @@ private okhttp3.Call listStorageClassValidateBeforeCall(String pretty, Boolean a
401 Unauthorized -
*/ - public V1StorageClassList listStorageClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1VolumeAttachmentList listVolumeAttachment(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * - * list or watch objects of kind StorageClass + * list or watch objects of kind VolumeAttachment * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -3860,7 +4601,7 @@ public V1StorageClassList listStorageClass(String pretty, Boolean allowWatchBook * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @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 ApiResponse<V1StorageClassList> + * @return ApiResponse<V1VolumeAttachmentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3869,15 +4610,15 @@ public V1StorageClassList listStorageClass(String pretty, Boolean allowWatchBook
401 Unauthorized -
*/ - public ApiResponse listStorageClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse listVolumeAttachmentWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + 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); } /** * (asynchronously) - * list or watch objects of kind StorageClass + * list or watch objects of kind VolumeAttachment * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -3899,15 +4640,15 @@ public ApiResponse listStorageClassWithHttpInfo(String prett 401 Unauthorized - */ - public okhttp3.Call listStorageClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listVolumeAttachmentAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(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; } /** - * Build call for listVolumeAttachment + * Build call for listVolumeAttributesClass * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -3929,11 +4670,11 @@ public okhttp3.Call listStorageClassAsync(String pretty, Boolean allowWatchBookm 401 Unauthorized - */ - public okhttp3.Call listVolumeAttachmentCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listVolumeAttributesClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments"; + String localVarPath = "/apis/storage.k8s.io/v1/volumeattributesclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4003,17 +4744,17 @@ public okhttp3.Call listVolumeAttachmentCall(String pretty, Boolean allowWatchBo } @SuppressWarnings("rawtypes") - private okhttp3.Call listVolumeAttachmentValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttributesClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); return localVarCall; } /** * - * list or watch objects of kind VolumeAttachment + * list or watch objects of kind VolumeAttributesClass * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -4025,7 +4766,7 @@ private okhttp3.Call listVolumeAttachmentValidateBeforeCall(String pretty, Boole * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @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 V1VolumeAttachmentList + * @return V1VolumeAttributesClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4034,14 +4775,14 @@ private okhttp3.Call listVolumeAttachmentValidateBeforeCall(String pretty, Boole
401 Unauthorized -
*/ - public V1VolumeAttachmentList listVolumeAttachment(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1VolumeAttributesClassList listVolumeAttributesClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** * - * list or watch objects of kind VolumeAttachment + * list or watch objects of kind VolumeAttributesClass * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -4053,7 +4794,7 @@ public V1VolumeAttachmentList listVolumeAttachment(String pretty, Boolean allowW * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @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 ApiResponse<V1VolumeAttachmentList> + * @return ApiResponse<V1VolumeAttributesClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4062,15 +4803,15 @@ public V1VolumeAttachmentList listVolumeAttachment(String pretty, Boolean allowW
401 Unauthorized -
*/ - public ApiResponse listVolumeAttachmentWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse listVolumeAttributesClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + 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); } /** * (asynchronously) - * list or watch objects of kind VolumeAttachment + * list or watch objects of kind VolumeAttributesClass * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @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) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -4092,10 +4833,10 @@ public ApiResponse listVolumeAttachmentWithHttpInfo(Stri 401 Unauthorized - */ - public okhttp3.Call listVolumeAttachmentAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listVolumeAttributesClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(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; } @@ -5020,35 +5761,203 @@ public okhttp3.Call patchVolumeAttachmentStatusCall(String name, V1Patch body, S } @SuppressWarnings("rawtypes") - private okhttp3.Call patchVolumeAttachmentStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchVolumeAttachmentStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchVolumeAttachmentStatus(Async)"); + } + + + okhttp3.Call localVarCall = patchVolumeAttachmentStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return localVarCall; + + } + + /** + * + * partially update status of the specified VolumeAttachment + * @param name name of the VolumeAttachment (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 V1VolumeAttachment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1VolumeAttachment patchVolumeAttachmentStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * + * partially update status of the specified VolumeAttachment + * @param name name of the VolumeAttachment (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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 ApiResponse<V1VolumeAttachment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse patchVolumeAttachmentStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); + } + + /** + * (asynchronously) + * partially update status of the specified VolumeAttachment + * @param name name of the VolumeAttachment (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchVolumeAttachmentStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for patchVolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @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) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call patchVolumeAttributesClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1/volumeattributesclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchVolumeAttributesClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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)"); } - okhttp3.Call localVarCall = patchVolumeAttachmentStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + okhttp3.Call localVarCall = patchVolumeAttributesClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); return localVarCall; } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @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 V1VolumeAttachment + * @return V1VolumeAttributesClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5058,22 +5967,22 @@ private okhttp3.Call patchVolumeAttachmentStatusValidateBeforeCall(String name,
401 Unauthorized -
*/ - public V1VolumeAttachment patchVolumeAttachmentStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = patchVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1VolumeAttributesClass patchVolumeAttributesClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + ApiResponse localVarResp = patchVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** * - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @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 ApiResponse<V1VolumeAttachment> + * @return ApiResponse<V1VolumeAttributesClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5083,16 +5992,16 @@ public V1VolumeAttachment patchVolumeAttachmentStatus(String name, V1Patch body,
401 Unauthorized -
*/ - public ApiResponse patchVolumeAttachmentStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse patchVolumeAttributesClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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); } /** * (asynchronously) - * 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) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -5110,10 +6019,10 @@ public ApiResponse patchVolumeAttachmentStatusWithHttpInfo(S 401 Unauthorized - */ - public okhttp3.Call patchVolumeAttachmentStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + public okhttp3.Call patchVolumeAttributesClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, 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; } @@ -5865,6 +6774,129 @@ public okhttp3.Call readVolumeAttachmentStatusAsync(String name, String pretty, localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for readVolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readVolumeAttributesClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1/volumeattributesclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + 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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readVolumeAttributesClassValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttributesClass(Async)"); + } + + + okhttp3.Call localVarCall = readVolumeAttributesClassCall(name, pretty, _callback); + return localVarCall; + + } + + /** + * + * read the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return V1VolumeAttributesClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1VolumeAttributesClass readVolumeAttributesClass(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readVolumeAttributesClassWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * + * read the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return ApiResponse<V1VolumeAttributesClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse readVolumeAttributesClassWithHttpInfo(String name, String pretty) throws ApiException { + okhttp3.Call localVarCall = readVolumeAttributesClassValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * read the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readVolumeAttributesClassAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readVolumeAttributesClassValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for replaceCSIDriver * @param name name of the CSIDriver (required) @@ -6835,4 +7867,164 @@ public okhttp3.Call replaceVolumeAttachmentStatusAsync(String name, V1VolumeAtta localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for replaceVolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceVolumeAttributesClassCall(String name, V1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/storage.k8s.io/v1/volumeattributesclasses/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + 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)); + } + + 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 = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceVolumeAttributesClassValidateBeforeCall(String name, V1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, 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)"); + } + + + okhttp3.Call localVarCall = replaceVolumeAttributesClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return localVarCall; + + } + + /** + * + * replace the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return V1VolumeAttributesClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1VolumeAttributesClass replaceVolumeAttributesClass(String name, V1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + ApiResponse localVarResp = replaceVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * + * replace the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return ApiResponse<V1VolumeAttributesClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse replaceVolumeAttributesClassWithHttpInfo(String name, V1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, 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); + } + + /** + * (asynchronously) + * replace the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass (required) + * @param body (required) + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceVolumeAttributesClassAsync(String name, V1VolumeAttributesClass body, String pretty, String dryRun, String fieldManager, 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; + } } 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 717218b345..af5cd4232e 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 @@ -17,7 +17,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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/HttpBearerAuth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java index 5671bf0203..7d834b42ca 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 @@ -17,7 +17,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; 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 8cefd2898a..941cc364e8 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 @@ -27,7 +27,7 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 91ceb0b99d..ee6d77073b 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 @@ -28,7 +28,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 99c77c7593..a46a450109 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 @@ -27,7 +27,7 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b25d692845..9023af2a99 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 539cf36241..91440004b5 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 @@ -27,7 +27,7 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 821068048f..74c975a6b6 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 @@ -30,7 +30,7 @@ * TokenRequest requests a token for a given service account. */ @ApiModel(description = "TokenRequest requests a token for a given service account.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a4502cf5ed..8ec2f1660d 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 @@ -27,7 +27,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+.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b7f0b997a3..0af6f46865 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 @@ -32,7 +32,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7ac4118d16..4c884b9999 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 @@ -31,7 +31,7 @@ * EventList is a list of events. */ @ApiModel(description = "EventList is a list of events.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 691d1bbeb9..2ce4ba5d62 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 88% 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 86de0a5637..786b35e76c 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 @@ -27,8 +27,8 @@ * ResourceClaim references one entry in PodSpec.ResourceClaims. */ @ApiModel(description = "ResourceClaim references one entry in PodSpec.ResourceClaims.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1ResourceClaim { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class CoreV1ResourceClaim { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; @@ -38,7 +38,7 @@ public class V1ResourceClaim { private String request; - public V1ResourceClaim name(String name) { + public CoreV1ResourceClaim name(String name) { this.name = name; return this; @@ -60,7 +60,7 @@ public void setName(String name) { } - public V1ResourceClaim request(String request) { + public CoreV1ResourceClaim request(String request) { this.request = request; return this; @@ -91,9 +91,9 @@ public boolean equals(java.lang.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 @@ -105,7 +105,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("}"); 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 e79a6d14f9..a93523ccf8 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 @@ -27,7 +27,7 @@ * EndpointPort represents a Port used by an EndpointSlice */ @ApiModel(description = "EndpointPort represents a Port used by an EndpointSlice") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d3bdaa2e44..445846a824 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 @@ -32,7 +32,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 253b0457df..2c1acfd820 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 @@ -31,7 +31,7 @@ * EventList is a list of Event objects. */ @ApiModel(description = "EventList is a list of Event objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 79699710e4..f82cbbf693 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 db1c2b5b95..a0ab49bf73 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 279e8393be..1d3f1f2cf6 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 81% 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 de0d21b434..3dbb150d15 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 @@ -20,8 +20,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; @@ -30,8 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3ResourceClaim implements io.kubernetes.client.common.KubernetesObject { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class ResourceV1ResourceClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) private String apiVersion; @@ -46,14 +46,14 @@ public class V1alpha3ResourceClaim implements io.kubernetes.client.common.Kubern public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - private V1alpha3ResourceClaimSpec spec; + private V1ResourceClaimSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - private V1alpha3ResourceClaimStatus status; + private V1ResourceClaimStatus status; - public V1alpha3ResourceClaim apiVersion(String apiVersion) { + public ResourceV1ResourceClaim apiVersion(String apiVersion) { this.apiVersion = apiVersion; return this; @@ -76,7 +76,7 @@ public void setApiVersion(String apiVersion) { } - public V1alpha3ResourceClaim kind(String kind) { + public ResourceV1ResourceClaim kind(String kind) { this.kind = kind; return this; @@ -99,7 +99,7 @@ public void setKind(String kind) { } - public V1alpha3ResourceClaim metadata(V1ObjectMeta metadata) { + public ResourceV1ResourceClaim metadata(V1ObjectMeta metadata) { this.metadata = metadata; return this; @@ -122,7 +122,7 @@ public void setMetadata(V1ObjectMeta metadata) { } - public V1alpha3ResourceClaim spec(V1alpha3ResourceClaimSpec spec) { + public ResourceV1ResourceClaim spec(V1ResourceClaimSpec spec) { this.spec = spec; return this; @@ -134,17 +134,17 @@ public V1alpha3ResourceClaim spec(V1alpha3ResourceClaimSpec spec) { **/ @ApiModelProperty(required = true, value = "") - public V1alpha3ResourceClaimSpec getSpec() { + public V1ResourceClaimSpec getSpec() { return spec; } - public void setSpec(V1alpha3ResourceClaimSpec spec) { + public void setSpec(V1ResourceClaimSpec spec) { this.spec = spec; } - public V1alpha3ResourceClaim status(V1alpha3ResourceClaimStatus status) { + public ResourceV1ResourceClaim status(V1ResourceClaimStatus status) { this.status = status; return this; @@ -157,12 +157,12 @@ public V1alpha3ResourceClaim status(V1alpha3ResourceClaimStatus status) { @javax.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3ResourceClaimStatus getStatus() { + public V1ResourceClaimStatus getStatus() { return status; } - public void setStatus(V1alpha3ResourceClaimStatus status) { + public void setStatus(V1ResourceClaimStatus status) { this.status = status; } @@ -175,12 +175,12 @@ public boolean equals(java.lang.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 @@ -192,7 +192,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"); 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 710f9cdcad..c6219f1487 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 @@ -27,7 +27,7 @@ * TokenRequest contains parameters of a service account token. */ @ApiModel(description = "TokenRequest contains parameters of a service account token.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8db0df6dd3..317572b55c 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 1d0076257b..07c81ee8dc 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 60e390d4c8..9b294643a5 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 1886c9278a..822a1829fd 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a44fd76161..3f06adc27c 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 @@ -30,7 +30,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\".") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f770bed276..34169c4c82 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 @@ -28,7 +28,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f373e17adf..e96c07d7c8 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 @@ -31,7 +31,7 @@ * APIServiceList is a list of APIService objects. */ @ApiModel(description = "APIServiceList is a list of APIService objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0e5a5bbadd..9760530f62 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7fcb45e184..8a01498358 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 @@ -30,7 +30,7 @@ * APIServiceStatus contains derived information about an API server */ @ApiModel(description = "APIServiceStatus contains derived information about an API server") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b41fb57b2e..51b851abaf 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4be2179f1f..b350fa35f2 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 dd1551cbb3..2f7c98dfe1 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 @@ -30,7 +30,7 @@ * Affinity is a group of affinity scheduling rules. */ @ApiModel(description = "Affinity is a group of affinity scheduling rules.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0cac4e7a98..30ed65b300 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 @@ -30,7 +30,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 74% 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 1cd7404dc5..daef85dab9 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 @@ -20,7 +20,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; @@ -28,11 +28,11 @@ import java.util.List; /** - * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; @@ -51,20 +51,24 @@ public class V1alpha3AllocatedDeviceStatus { public static final String SERIALIZED_NAME_NETWORK_DATA = "networkData"; @SerializedName(SERIALIZED_NAME_NETWORK_DATA) - private V1alpha3NetworkDeviceData networkData; + private V1NetworkDeviceData networkData; public static final String SERIALIZED_NAME_POOL = "pool"; @SerializedName(SERIALIZED_NAME_POOL) private String pool; + public static final String SERIALIZED_NAME_SHARE_I_D = "shareID"; + @SerializedName(SERIALIZED_NAME_SHARE_I_D) + private String shareID; - public V1alpha3AllocatedDeviceStatus conditions(List conditions) { + + public V1AllocatedDeviceStatus conditions(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<>(); } @@ -89,7 +93,7 @@ public void setConditions(List conditions) { } - public V1alpha3AllocatedDeviceStatus data(Object data) { + public V1AllocatedDeviceStatus data(Object data) { this.data = data; return this; @@ -112,7 +116,7 @@ public void setData(Object data) { } - public V1alpha3AllocatedDeviceStatus device(String device) { + public V1AllocatedDeviceStatus device(String device) { this.device = device; return this; @@ -134,7 +138,7 @@ public void setDevice(String device) { } - public V1alpha3AllocatedDeviceStatus driver(String driver) { + public V1AllocatedDeviceStatus driver(String driver) { this.driver = driver; return this; @@ -156,7 +160,7 @@ public void setDriver(String driver) { } - public V1alpha3AllocatedDeviceStatus networkData(V1alpha3NetworkDeviceData networkData) { + public V1AllocatedDeviceStatus networkData(V1NetworkDeviceData networkData) { this.networkData = networkData; return this; @@ -169,17 +173,17 @@ public V1alpha3AllocatedDeviceStatus networkData(V1alpha3NetworkDeviceData netwo @javax.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3NetworkDeviceData getNetworkData() { + public V1NetworkDeviceData getNetworkData() { return networkData; } - public void setNetworkData(V1alpha3NetworkDeviceData networkData) { + public void setNetworkData(V1NetworkDeviceData networkData) { this.networkData = networkData; } - public V1alpha3AllocatedDeviceStatus pool(String pool) { + public V1AllocatedDeviceStatus pool(String pool) { this.pool = pool; return this; @@ -201,6 +205,29 @@ public void setPool(String pool) { } + public V1AllocatedDeviceStatus shareID(String shareID) { + + this.shareID = shareID; + return this; + } + + /** + * ShareID uniquely identifies an individual allocation share of the device. + * @return shareID + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "ShareID uniquely identifies an individual allocation share of the device.") + + public String getShareID() { + return shareID; + } + + + public void setShareID(String shareID) { + this.shareID = shareID; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -209,31 +236,33 @@ public boolean equals(java.lang.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(); } 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 56% 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 8b477c2dd1..45c91eec33 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 @@ -19,28 +19,56 @@ 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; /** * AllocationResult contains attributes of an allocated resource. */ @ApiModel(description = "AllocationResult contains attributes of an allocated resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3AllocationResult { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1AllocationResult { + public static final String SERIALIZED_NAME_ALLOCATION_TIMESTAMP = "allocationTimestamp"; + @SerializedName(SERIALIZED_NAME_ALLOCATION_TIMESTAMP) + private OffsetDateTime allocationTimestamp; + public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) - private V1alpha3DeviceAllocationResult devices; + private V1DeviceAllocationResult devices; public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) private V1NodeSelector nodeSelector; - public V1alpha3AllocationResult devices(V1alpha3DeviceAllocationResult devices) { + public V1AllocationResult allocationTimestamp(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 + **/ + @javax.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(OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + } + + + public V1AllocationResult devices(V1DeviceAllocationResult devices) { this.devices = devices; return this; @@ -53,17 +81,17 @@ public V1alpha3AllocationResult devices(V1alpha3DeviceAllocationResult devices) @javax.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3DeviceAllocationResult getDevices() { + public V1DeviceAllocationResult getDevices() { return devices; } - public void setDevices(V1alpha3DeviceAllocationResult devices) { + public void setDevices(V1DeviceAllocationResult devices) { this.devices = devices; } - public V1alpha3AllocationResult nodeSelector(V1NodeSelector nodeSelector) { + public V1AllocationResult nodeSelector(V1NodeSelector nodeSelector) { this.nodeSelector = nodeSelector; return this; @@ -94,21 +122,23 @@ public boolean equals(java.lang.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("}"); 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 540cdaca2d..2e0b41b165 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 @@ -27,7 +27,7 @@ * AppArmorProfile defines a pod or container's AppArmor settings. */ @ApiModel(description = "AppArmorProfile defines a pod or container's AppArmor settings.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 eca399a668..7cf5adf6d5 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 @@ -27,7 +27,7 @@ * AttachedVolume describes a volume attached to a node */ @ApiModel(description = "AttachedVolume describes a volume attached to a node") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7f3b2818e8..ccf19759c3 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e20a3ec041..526d1c1b7d 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 46d042ea56..529f948d5f 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a340a2f6ee..17f9cf2c46 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 678d1abb5d..15c273d671 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 60e6a27213..f7070c36fe 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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..60538c1089 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java @@ -0,0 +1,97 @@ +/* +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 java.util.Arrays; +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; + +/** + * CELDeviceSelector contains a CEL expression for selecting a device. + */ +@ApiModel(description = "CELDeviceSelector contains a CEL expression for selecting a device.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1CELDeviceSelector { + public static final String SERIALIZED_NAME_EXPRESSION = "expression"; + @SerializedName(SERIALIZED_NAME_EXPRESSION) + private String expression; + + + public V1CELDeviceSelector expression(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 + **/ + @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(String expression) { + this.expression = expression; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 998d19202c..3e77e59427 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 5595fb6eb9..bb3dacdfde 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 @@ -31,7 +31,7 @@ * CSIDriverList is a collection of CSIDriver objects. */ @ApiModel(description = "CSIDriverList is a collection of CSIDriver objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3605e3d0db..fa0656a6b4 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 @@ -30,7 +30,7 @@ * CSIDriverSpec is the specification of a CSIDriver. */ @ApiModel(description = "CSIDriverSpec is the specification of a CSIDriver.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1CSIDriverSpec { public static final String SERIALIZED_NAME_ATTACH_REQUIRED = "attachRequired"; @SerializedName(SERIALIZED_NAME_ATTACH_REQUIRED) @@ -76,11 +76,11 @@ public V1CSIDriverSpec attachRequired(Boolean attachRequired) { } /** - * 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 **/ @javax.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; @@ -122,11 +122,11 @@ public V1CSIDriverSpec nodeAllocatableUpdatePeriodSeconds(Long nodeAllocatableUp } /** - * 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 **/ @javax.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 c1277cda79..391e0db05c 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4001bb0477..1655db95b6 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 @@ -30,7 +30,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 36997b3773..2df0e5122e 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 @@ -31,7 +31,7 @@ * CSINodeList is a collection of CSINode objects. */ @ApiModel(description = "CSINodeList is a collection of CSINode objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 485d401236..ce2d761ac2 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 @@ -30,7 +30,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 2321c4ca8f..54571f095e 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 @@ -31,7 +31,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 af1f1394f4..032e31bbe4 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f3364ee255..7462f94fac 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 @@ -31,7 +31,7 @@ * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. */ @ApiModel(description = "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 1b91c24c78..b0218aaedd 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 @@ -31,7 +31,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 19ecda8b11..85d622e55d 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 @@ -29,7 +29,7 @@ * Adds and removes POSIX capabilities from running containers. */ @ApiModel(description = "Adds and removes POSIX capabilities from running containers.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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..c46b8c5dbe --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java @@ -0,0 +1,168 @@ +/* +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 java.util.Arrays; +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.List; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1CapacityRequestPolicy { + public static final String SERIALIZED_NAME_DEFAULT = "default"; + @SerializedName(SERIALIZED_NAME_DEFAULT) + private Quantity _default; + + public static final String SERIALIZED_NAME_VALID_RANGE = "validRange"; + @SerializedName(SERIALIZED_NAME_VALID_RANGE) + private V1CapacityRequestPolicyRange validRange; + + public static final String SERIALIZED_NAME_VALID_VALUES = "validValues"; + @SerializedName(SERIALIZED_NAME_VALID_VALUES) + private List validValues = null; + + + public V1CapacityRequestPolicy _default(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 + **/ + @javax.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(Quantity _default) { + this._default = _default; + } + + + public V1CapacityRequestPolicy validRange(V1CapacityRequestPolicyRange validRange) { + + this.validRange = validRange; + return this; + } + + /** + * Get validRange + * @return validRange + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1CapacityRequestPolicyRange getValidRange() { + return validRange; + } + + + public void setValidRange(V1CapacityRequestPolicyRange validRange) { + this.validRange = validRange; + } + + + public V1CapacityRequestPolicy validValues(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 + **/ + @javax.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(List validValues) { + this.validValues = validValues; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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..0235ff56ac --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java @@ -0,0 +1,156 @@ +/* +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 java.util.Arrays; +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; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1CapacityRequestPolicyRange { + public static final String SERIALIZED_NAME_MAX = "max"; + @SerializedName(SERIALIZED_NAME_MAX) + private Quantity max; + + public static final String SERIALIZED_NAME_MIN = "min"; + @SerializedName(SERIALIZED_NAME_MIN) + private Quantity min; + + public static final String SERIALIZED_NAME_STEP = "step"; + @SerializedName(SERIALIZED_NAME_STEP) + private Quantity step; + + + public V1CapacityRequestPolicyRange max(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 + **/ + @javax.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(Quantity max) { + this.max = max; + } + + + public V1CapacityRequestPolicyRange min(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 + **/ + @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(Quantity min) { + this.min = min; + } + + + public V1CapacityRequestPolicyRange step(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 + **/ + @javax.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(Quantity step) { + this.step = step; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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..961b899e47 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java @@ -0,0 +1,110 @@ +/* +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 java.util.Arrays; +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.HashMap; +import java.util.List; +import java.util.Map; + +/** + * CapacityRequirements defines the capacity requirements for a specific device request. + */ +@ApiModel(description = "CapacityRequirements defines the capacity requirements for a specific device request.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1CapacityRequirements { + public static final String SERIALIZED_NAME_REQUESTS = "requests"; + @SerializedName(SERIALIZED_NAME_REQUESTS) + private Map requests = null; + + + public V1CapacityRequirements requests(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 + **/ + @javax.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(Map requests) { + this.requests = requests; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 c8b4f2dc29..bcd5b64cca 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d150771f7b..5815776d6a 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 fcb1c4025e..31fbbc9c8b 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3e34282dd5..9bead21525 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 @@ -28,7 +28,7 @@ * CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object */ @ApiModel(description = "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a8747bcae6..976f84e112 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 @@ -31,7 +31,7 @@ * CertificateSigningRequestList is a collection of CertificateSigningRequest objects */ @ApiModel(description = "CertificateSigningRequestList is a collection of CertificateSigningRequest objects") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 50c948335c..56b5d58d73 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 @@ -31,7 +31,7 @@ * CertificateSigningRequestSpec contains the certificate request. */ @ApiModel(description = "CertificateSigningRequestSpec contains the certificate request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c3e90c56e9..ddfb95a8ef 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 eb991a2150..6c36075429 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b5f63e1573..91290b1102 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 77e6e15f7d..5d1c5580ae 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 @@ -27,7 +27,7 @@ * ClientIPConfig represents the configurations of Client IP based session affinity. */ @ApiModel(description = "ClientIPConfig represents the configurations of Client IP based session affinity.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 48b86c29b4..dad97f3099 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 @@ -32,7 +32,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 17661fa419..b4f9d30039 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 @@ -32,7 +32,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 02b11d3bde..5e10b73bff 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 @@ -31,7 +31,7 @@ * ClusterRoleBindingList is a collection of ClusterRoleBindings */ @ApiModel(description = "ClusterRoleBindingList is a collection of ClusterRoleBindings") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d2fd11bffd..bca7d0d35d 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 @@ -31,7 +31,7 @@ * ClusterRoleList is a collection of ClusterRoles */ @ApiModel(description = "ClusterRoleList is a collection of ClusterRoles") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 5cc1782e12..c41e1316c5 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c09d24cd4f..c260d21fa4 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 @@ -27,7 +27,7 @@ * Information about the condition of a component. */ @ApiModel(description = "Information about the condition of a component.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 6651a492fc..6d3a38c8e5 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 @@ -31,7 +31,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+") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 060cbd3d79..0ae4f5a545 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 @@ -31,7 +31,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+") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8a8bd94fc7..fe28512869 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 19d29a4e55..e7aa5a4b63 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 @@ -31,7 +31,7 @@ * ConfigMap holds configuration data for pods to consume. */ @ApiModel(description = "ConfigMap holds configuration data for pods to consume.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f515d83cf7..3c5321e41d 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a7b0ebb6f9..5edef5c389 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 @@ -27,7 +27,7 @@ * Selects a key from a ConfigMap. */ @ApiModel(description = "Selects a key from a ConfigMap.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7565e03c3e..03640132e0 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 @@ -31,7 +31,7 @@ * ConfigMapList is a resource containing a list of ConfigMap objects. */ @ApiModel(description = "ConfigMapList is a resource containing a list of ConfigMap objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 6779856339..765b8c365d 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 @@ -27,7 +27,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 33cef14c6c..eec420de7e 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 dc1d58794a..dc9ca364a2 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 bf5f0f7d30..04f994194e 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 @@ -21,6 +21,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; @@ -39,7 +40,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1Container { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) @@ -97,6 +98,10 @@ public class V1Container { @SerializedName(SERIALIZED_NAME_RESTART_POLICY) private String restartPolicy; + public static final String SERIALIZED_NAME_RESTART_POLICY_RULES = "restartPolicyRules"; + @SerializedName(SERIALIZED_NAME_RESTART_POLICY_RULES) + private List restartPolicyRules = null; + public static final String SERIALIZED_NAME_SECURITY_CONTEXT = "securityContext"; @SerializedName(SERIALIZED_NAME_SECURITY_CONTEXT) private V1SecurityContext securityContext; @@ -246,11 +251,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 **/ @javax.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; @@ -491,11 +496,11 @@ public V1Container restartPolicy(String restartPolicy) { } /** - * 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 **/ @javax.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; @@ -507,6 +512,37 @@ public void setRestartPolicy(String restartPolicy) { } + public V1Container restartPolicyRules(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 + **/ + @javax.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(List restartPolicyRules) { + this.restartPolicyRules = restartPolicyRules; + } + + public V1Container securityContext(V1SecurityContext securityContext) { this.securityContext = securityContext; @@ -776,6 +812,7 @@ public boolean equals(java.lang.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) && @@ -790,7 +827,7 @@ public boolean equals(java.lang.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); } @@ -812,6 +849,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"); 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..6b197af1a1 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java @@ -0,0 +1,153 @@ +/* +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 java.util.Arrays; +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; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1ContainerExtendedResourceRequest { + public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; + @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) + private String containerName; + + public static final String SERIALIZED_NAME_REQUEST_NAME = "requestName"; + @SerializedName(SERIALIZED_NAME_REQUEST_NAME) + private String requestName; + + public static final String SERIALIZED_NAME_RESOURCE_NAME = "resourceName"; + @SerializedName(SERIALIZED_NAME_RESOURCE_NAME) + private String resourceName; + + + public V1ContainerExtendedResourceRequest containerName(String containerName) { + + this.containerName = containerName; + return this; + } + + /** + * The name of the container requesting resources. + * @return containerName + **/ + @ApiModelProperty(required = true, value = "The name of the container requesting resources.") + + public String getContainerName() { + return containerName; + } + + + public void setContainerName(String containerName) { + this.containerName = containerName; + } + + + public V1ContainerExtendedResourceRequest requestName(String requestName) { + + this.requestName = requestName; + return this; + } + + /** + * The name of the request in the special ResourceClaim which corresponds to the extended resource. + * @return requestName + **/ + @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(String requestName) { + this.requestName = requestName; + } + + + public V1ContainerExtendedResourceRequest resourceName(String resourceName) { + + this.resourceName = resourceName; + return this; + } + + /** + * The name of the extended resource in that container which gets backed by DRA. + * @return resourceName + **/ + @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(String resourceName) { + this.resourceName = resourceName; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 429acec17c..4566e60efc 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 @@ -29,7 +29,7 @@ * Describe a container image */ @ApiModel(description = "Describe a container image") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 741afbb9b5..184af93c83 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 @@ -27,7 +27,7 @@ * ContainerPort represents a network port in a single container. */ @ApiModel(description = "ContainerPort represents a network port in a single container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f14a3c4baf..aaf48b7956 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 @@ -27,7 +27,7 @@ * ContainerResizePolicy represents resource resize policy for the container. */ @ApiModel(description = "ContainerResizePolicy represents resource resize policy for the container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1ContainerResizePolicy { public static final String SERIALIZED_NAME_RESOURCE_NAME = "resourceName"; @SerializedName(SERIALIZED_NAME_RESOURCE_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java new file mode 100644 index 0000000000..0f3ac4a917 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java @@ -0,0 +1,127 @@ +/* +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 java.util.Arrays; +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.V1ContainerRestartRuleOnExitCodes; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ContainerRestartRule describes how a container exit is handled. + */ +@ApiModel(description = "ContainerRestartRule describes how a container exit is handled.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1ContainerRestartRule { + public static final String SERIALIZED_NAME_ACTION = "action"; + @SerializedName(SERIALIZED_NAME_ACTION) + private String action; + + public static final String SERIALIZED_NAME_EXIT_CODES = "exitCodes"; + @SerializedName(SERIALIZED_NAME_EXIT_CODES) + private V1ContainerRestartRuleOnExitCodes exitCodes; + + + public V1ContainerRestartRule action(String action) { + + this.action = action; + return this; + } + + /** + * 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 + **/ + @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 setAction(String action) { + this.action = action; + } + + + public V1ContainerRestartRule exitCodes(V1ContainerRestartRuleOnExitCodes exitCodes) { + + this.exitCodes = exitCodes; + return this; + } + + /** + * Get exitCodes + * @return exitCodes + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ContainerRestartRuleOnExitCodes getExitCodes() { + return exitCodes; + } + + + public void setExitCodes(V1ContainerRestartRuleOnExitCodes exitCodes) { + this.exitCodes = exitCodes; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ContainerRestartRule v1ContainerRestartRule = (V1ContainerRestartRule) o; + return Objects.equals(this.action, v1ContainerRestartRule.action) && + Objects.equals(this.exitCodes, v1ContainerRestartRule.exitCodes); + } + + @Override + public int hashCode() { + return Objects.hash(action, exitCodes); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + 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(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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..3dfb2d31c5 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java @@ -0,0 +1,136 @@ +/* +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 java.util.Arrays; +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.List; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1ContainerRestartRuleOnExitCodes { + public static final String SERIALIZED_NAME_OPERATOR = "operator"; + @SerializedName(SERIALIZED_NAME_OPERATOR) + private String operator; + + public static final String SERIALIZED_NAME_VALUES = "values"; + @SerializedName(SERIALIZED_NAME_VALUES) + private List values = null; + + + public V1ContainerRestartRuleOnExitCodes operator(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 + **/ + @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(String operator) { + this.operator = operator; + } + + + public V1ContainerRestartRuleOnExitCodes values(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 + **/ + @javax.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(List values) { + this.values = values; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 8851a6442f..dda309a11e 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 560cb5db6d..7b79695487 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 @@ -28,7 +28,7 @@ * ContainerStateRunning is a running state of a container. */ @ApiModel(description = "ContainerStateRunning is a running state of a container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7b767bd831..a1ced02be1 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 @@ -28,7 +28,7 @@ * ContainerStateTerminated is a terminated state of a container. */ @ApiModel(description = "ContainerStateTerminated is a terminated state of a container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 6f960a7deb..eaf8725192 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 @@ -27,7 +27,7 @@ * ContainerStateWaiting is a waiting state of a container. */ @ApiModel(description = "ContainerStateWaiting is a waiting state of a container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7dc4cde91a..bfc626a0bc 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 @@ -37,7 +37,7 @@ * ContainerStatus contains details for the current status of this container. */ @ApiModel(description = "ContainerStatus contains details for the current status of this container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 31cffd9bd6..9da17afbbf 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 @@ -28,7 +28,7 @@ * ContainerUser represents user identity information */ @ApiModel(description = "ContainerUser represents user identity information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 265906e036..ec83c422e8 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 fd4085cbde..674d51118b 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 @@ -31,7 +31,7 @@ * ControllerRevisionList is a resource containing a list of ControllerRevision objects. */ @ApiModel(description = "ControllerRevisionList is a resource containing a list of ControllerRevision objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 96% 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 7dbc5d5307..510d34cdc7 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 @@ -28,14 +28,14 @@ * Counter describes a quantity associated with a device. */ @ApiModel(description = "Counter describes a quantity associated with a device.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3Counter { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1Counter { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) private Quantity value; - public V1alpha3Counter value(Quantity value) { + public V1Counter value(Quantity value) { this.value = value; return this; @@ -65,8 +65,8 @@ public boolean equals(java.lang.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 @@ -78,7 +78,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(); 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 65% 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 22aaf0f2b6..4f2030a137 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 @@ -19,7 +19,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; @@ -31,55 +31,55 @@ * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3CounterSet { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1CounterSet { public static final String SERIALIZED_NAME_COUNTERS = "counters"; @SerializedName(SERIALIZED_NAME_COUNTERS) - private Map counters = new HashMap<>(); + private Map counters = new HashMap<>(); public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; - public V1alpha3CounterSet counters(Map counters) { + public V1CounterSet counters(Map counters) { this.counters = counters; return this; } - public V1alpha3CounterSet putCountersItem(String key, V1alpha3Counter countersItem) { + public V1CounterSet putCountersItem(String key, V1Counter countersItem) { this.counters.put(key, countersItem); return this; } /** - * Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32. + * 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 **/ - @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.") + @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() { + public Map getCounters() { return counters; } - public void setCounters(Map counters) { + public void setCounters(Map counters) { this.counters = counters; } - public V1alpha3CounterSet name(String name) { + public V1CounterSet name(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 **/ - @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; @@ -99,9 +99,9 @@ public boolean equals(java.lang.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 @@ -113,7 +113,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("}"); 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 e581e42938..ca02f1818d 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 @@ -30,7 +30,7 @@ * CronJob represents the configuration of a single cron job. */ @ApiModel(description = "CronJob represents the configuration of a single cron job.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e596942569..5fd2ecf94a 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 @@ -31,7 +31,7 @@ * CronJobList is a collection of cron jobs. */ @ApiModel(description = "CronJobList is a collection of cron jobs.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 6eba1c9a46..50471e3665 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 619e9d479a..1113ec184e 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 @@ -31,7 +31,7 @@ * CronJobStatus represents the current state of a cron job. */ @ApiModel(description = "CronJobStatus represents the current state of a cron job.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 964df7d51a..ac04a9fdb8 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 01d3a99722..57023499cb 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 @@ -27,7 +27,7 @@ * CustomResourceColumnDefinition specifies a column for server side printing. */ @ApiModel(description = "CustomResourceColumnDefinition specifies a column for server side printing.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 92cbb64c96..791b9bf76b 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 @@ -28,7 +28,7 @@ * CustomResourceConversion describes how to convert different versions of a CR. */ @ApiModel(description = "CustomResourceConversion describes how to convert different versions of a CR.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 de6ced53f2..ffc6e572d4 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 @@ -30,7 +30,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>.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e80cc44991..9eeb0ad714 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 @@ -28,7 +28,7 @@ * CustomResourceDefinitionCondition contains details for the current condition of this pod. */ @ApiModel(description = "CustomResourceDefinitionCondition contains details for the current condition of this pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7f5f435dbf..30fde7a3cb 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 @@ -31,7 +31,7 @@ * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. */ @ApiModel(description = "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 059ca67293..870a09ab85 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 @@ -29,7 +29,7 @@ * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition */ @ApiModel(description = "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 fa93c6ad0c..786c52294a 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 @@ -32,7 +32,7 @@ * CustomResourceDefinitionSpec describes how a user wants their resource to appear */ @ApiModel(description = "CustomResourceDefinitionSpec describes how a user wants their resource to appear") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4480360573..d6e09f6b84 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 @@ -31,7 +31,7 @@ * CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition */ @ApiModel(description = "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 fed67a57dd..04c978eaa6 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 @@ -33,7 +33,7 @@ * CustomResourceDefinitionVersion describes a version for CRD. */ @ApiModel(description = "CustomResourceDefinitionVersion describes a version for CRD.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f968b75839..f4e487d589 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 @@ -27,7 +27,7 @@ * CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. */ @ApiModel(description = "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 19351ccc3f..eb47e21499 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 @@ -28,7 +28,7 @@ * CustomResourceSubresources defines the status and scale subresources for CustomResources. */ @ApiModel(description = "CustomResourceSubresources defines the status and scale subresources for CustomResources.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 079acb9ea8..fca973b2b7 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 @@ -28,7 +28,7 @@ * CustomResourceValidation is a list of validation methods for CustomResources. */ @ApiModel(description = "CustomResourceValidation is a list of validation methods for CustomResources.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d92b3b9497..5e05537665 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 @@ -27,7 +27,7 @@ * DaemonEndpoint contains information about a single Daemon endpoint. */ @ApiModel(description = "DaemonEndpoint contains information about a single Daemon endpoint.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 39abfe06a3..62196dd73f 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 @@ -30,7 +30,7 @@ * DaemonSet represents the configuration of a daemon set. */ @ApiModel(description = "DaemonSet represents the configuration of a daemon set.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d8e82346b5..cb000d4ee1 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 2bb2539746..d5305bf72b 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 @@ -31,7 +31,7 @@ * DaemonSetList is a collection of daemon sets. */ @ApiModel(description = "DaemonSetList is a collection of daemon sets.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c3c2fa36e2..71b13b20b6 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 @@ -30,7 +30,7 @@ * DaemonSetSpec is the specification of a daemon set. */ @ApiModel(description = "DaemonSetSpec is the specification of a daemon set.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b16559aa18..70f4203442 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 @@ -30,7 +30,7 @@ * DaemonSetStatus represents the current status of a daemon set. */ @ApiModel(description = "DaemonSetStatus represents the current status of a daemon set.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ffd7f86564..cd9db4c381 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 dd27d782d3..7ff7c4116d 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 @@ -30,7 +30,7 @@ * DeleteOptions may be provided when deleting an API object. */ @ApiModel(description = "DeleteOptions may be provided when deleting an API object.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a121d5f31e..0f1ebe088d 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 @@ -30,7 +30,7 @@ * Deployment enables declarative updates for Pods and ReplicaSets. */ @ApiModel(description = "Deployment enables declarative updates for Pods and ReplicaSets.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8a882d790f..490da41109 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d5217e0823..88ac8a50ed 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 @@ -31,7 +31,7 @@ * DeploymentList is a list of Deployments. */ @ApiModel(description = "DeploymentList is a list of Deployments.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 375dfdbe8c..d6122555f0 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 6184a6b120..ab12695af1 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 @@ -30,7 +30,7 @@ * DeploymentStatus is the most recently observed status of the Deployment. */ @ApiModel(description = "DeploymentStatus is the most recently observed status of the Deployment.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c51bad4901..49f1f73105 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 @@ -28,7 +28,7 @@ * DeploymentStrategy describes how to replace existing pods with new ones. */ @ApiModel(description = "DeploymentStrategy describes how to replace existing pods with new ones.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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..b364e6bbbb --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java @@ -0,0 +1,473 @@ +/* +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 java.util.Arrays; +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.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1Device { + public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; + @SerializedName(SERIALIZED_NAME_ALL_NODES) + private Boolean allNodes; + + public static final String SERIALIZED_NAME_ALLOW_MULTIPLE_ALLOCATIONS = "allowMultipleAllocations"; + @SerializedName(SERIALIZED_NAME_ALLOW_MULTIPLE_ALLOCATIONS) + private Boolean allowMultipleAllocations; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private Map attributes = null; + + public static final String SERIALIZED_NAME_BINDING_CONDITIONS = "bindingConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_CONDITIONS) + private List bindingConditions = null; + + public static final String SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS = "bindingFailureConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS) + private List bindingFailureConditions = null; + + public static final String SERIALIZED_NAME_BINDS_TO_NODE = "bindsToNode"; + @SerializedName(SERIALIZED_NAME_BINDS_TO_NODE) + private Boolean bindsToNode; + + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + private Map capacity = null; + + public static final String SERIALIZED_NAME_CONSUMES_COUNTERS = "consumesCounters"; + @SerializedName(SERIALIZED_NAME_CONSUMES_COUNTERS) + private List consumesCounters = null; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; + @SerializedName(SERIALIZED_NAME_NODE_NAME) + private String nodeName; + + public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; + @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) + private V1NodeSelector nodeSelector; + + public static final String SERIALIZED_NAME_TAINTS = "taints"; + @SerializedName(SERIALIZED_NAME_TAINTS) + private List taints = null; + + + public V1Device allNodes(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 + **/ + @javax.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(Boolean allNodes) { + this.allNodes = allNodes; + } + + + public V1Device allowMultipleAllocations(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 + **/ + @javax.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(Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + } + + + public V1Device attributes(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 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32.") + + public Map getAttributes() { + return attributes; + } + + + public void setAttributes(Map attributes) { + this.attributes = attributes; + } + + + public V1Device bindingConditions(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 + **/ + @javax.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(List bindingConditions) { + this.bindingConditions = bindingConditions; + } + + + public V1Device bindingFailureConditions(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 + **/ + @javax.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(List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + } + + + public V1Device bindsToNode(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 + **/ + @javax.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(Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + } + + + public V1Device capacity(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 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32.") + + public Map getCapacity() { + return capacity; + } + + + public void setCapacity(Map capacity) { + this.capacity = capacity; + } + + + public V1Device consumesCounters(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 + **/ + @javax.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(List consumesCounters) { + this.consumesCounters = consumesCounters; + } + + + public V1Device name(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 + **/ + @ApiModelProperty(required = true, value = "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public V1Device nodeName(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 + **/ + @javax.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(String nodeName) { + this.nodeName = nodeName; + } + + + public V1Device nodeSelector(V1NodeSelector nodeSelector) { + + this.nodeSelector = nodeSelector; + return this; + } + + /** + * Get nodeSelector + * @return nodeSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1NodeSelector getNodeSelector() { + return nodeSelector; + } + + + public void setNodeSelector(V1NodeSelector nodeSelector) { + this.nodeSelector = nodeSelector; + } + + + public V1Device taints(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 + **/ + @javax.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(List taints) { + this.taints = taints; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 79% 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 8875bfc9e9..a2f1a07189 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 @@ -19,7 +19,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; @@ -30,11 +30,11 @@ * DeviceAllocationConfiguration gets embedded in an AllocationResult. */ @ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3DeviceAllocationConfiguration { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceAllocationConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) - private V1alpha3OpaqueDeviceConfiguration opaque; + private V1OpaqueDeviceConfiguration opaque; public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) @@ -45,7 +45,7 @@ public class V1alpha3DeviceAllocationConfiguration { private String source; - public V1alpha3DeviceAllocationConfiguration opaque(V1alpha3OpaqueDeviceConfiguration opaque) { + public V1DeviceAllocationConfiguration opaque(V1OpaqueDeviceConfiguration opaque) { this.opaque = opaque; return this; @@ -58,23 +58,23 @@ public V1alpha3DeviceAllocationConfiguration opaque(V1alpha3OpaqueDeviceConfigur @javax.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3OpaqueDeviceConfiguration getOpaque() { + public V1OpaqueDeviceConfiguration getOpaque() { return opaque; } - public void setOpaque(V1alpha3OpaqueDeviceConfiguration opaque) { + public void setOpaque(V1OpaqueDeviceConfiguration opaque) { this.opaque = opaque; } - public V1alpha3DeviceAllocationConfiguration requests(List requests) { + public V1DeviceAllocationConfiguration requests(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<>(); } @@ -99,7 +99,7 @@ public void setRequests(List requests) { } - public V1alpha3DeviceAllocationConfiguration source(String source) { + public V1DeviceAllocationConfiguration source(String source) { this.source = source; return this; @@ -129,10 +129,10 @@ public boolean equals(java.lang.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 @@ -144,7 +144,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"); 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 72% 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 aec8006874..0fdbbc8974 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 @@ -19,8 +19,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; @@ -31,24 +31,24 @@ * DeviceAllocationResult is the result of allocating devices. */ @ApiModel(description = "DeviceAllocationResult is the result of allocating devices.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3DeviceAllocationResult { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceAllocationResult { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) - private List config = null; + private List config = null; public static final String SERIALIZED_NAME_RESULTS = "results"; @SerializedName(SERIALIZED_NAME_RESULTS) - private List results = null; + private List results = null; - public V1alpha3DeviceAllocationResult config(List config) { + public V1DeviceAllocationResult config(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<>(); } @@ -63,23 +63,23 @@ public V1alpha3DeviceAllocationResult addConfigItem(V1alpha3DeviceAllocationConf @javax.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(List config) { + public void setConfig(List config) { this.config = config; } - public V1alpha3DeviceAllocationResult results(List results) { + public V1DeviceAllocationResult results(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<>(); } @@ -94,12 +94,12 @@ public V1alpha3DeviceAllocationResult addResultsItem(V1alpha3DeviceRequestAlloca @javax.annotation.Nullable @ApiModelProperty(value = "Results lists all allocated devices.") - public List getResults() { + public List getResults() { return results; } - public void setResults(List results) { + public void setResults(List results) { this.results = results; } @@ -112,9 +112,9 @@ public boolean equals(java.lang.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 @@ -126,7 +126,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("}"); 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 85% 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 5e9a87b73b..7ca370ec42 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 @@ -27,8 +27,8 @@ * DeviceAttribute must have exactly one field set. */ @ApiModel(description = "DeviceAttribute must have exactly one field set.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3DeviceAttribute { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceAttribute { public static final String SERIALIZED_NAME_BOOL = "bool"; @SerializedName(SERIALIZED_NAME_BOOL) private Boolean bool; @@ -46,7 +46,7 @@ public class V1alpha3DeviceAttribute { private String version; - public V1alpha3DeviceAttribute bool(Boolean bool) { + public V1DeviceAttribute bool(Boolean bool) { this.bool = bool; return this; @@ -69,7 +69,7 @@ public void setBool(Boolean bool) { } - public V1alpha3DeviceAttribute _int(Long _int) { + public V1DeviceAttribute _int(Long _int) { this._int = _int; return this; @@ -92,7 +92,7 @@ public void setInt(Long _int) { } - public V1alpha3DeviceAttribute string(String string) { + public V1DeviceAttribute string(String string) { this.string = string; return this; @@ -115,7 +115,7 @@ public void setString(String string) { } - public V1alpha3DeviceAttribute version(String version) { + public V1DeviceAttribute version(String version) { this.version = version; return this; @@ -146,11 +146,11 @@ public boolean equals(java.lang.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 @@ -162,7 +162,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"); 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..78ea50ca66 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java @@ -0,0 +1,128 @@ +/* +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 java.util.Arrays; +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; + +/** + * DeviceCapacity describes a quantity associated with a device. + */ +@ApiModel(description = "DeviceCapacity describes a quantity associated with a device.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceCapacity { + public static final String SERIALIZED_NAME_REQUEST_POLICY = "requestPolicy"; + @SerializedName(SERIALIZED_NAME_REQUEST_POLICY) + private V1CapacityRequestPolicy requestPolicy; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private Quantity value; + + + public V1DeviceCapacity requestPolicy(V1CapacityRequestPolicy requestPolicy) { + + this.requestPolicy = requestPolicy; + return this; + } + + /** + * Get requestPolicy + * @return requestPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1CapacityRequestPolicy getRequestPolicy() { + return requestPolicy; + } + + + public void setRequestPolicy(V1CapacityRequestPolicy requestPolicy) { + this.requestPolicy = requestPolicy; + } + + + public V1DeviceCapacity value(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 + **/ + @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(Quantity value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 c6e877e042..b406619cb1 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 @@ -19,9 +19,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; @@ -32,28 +32,28 @@ * DeviceClaim defines how to request devices with a ResourceClaim. */ @ApiModel(description = "DeviceClaim defines how to request devices with a ResourceClaim.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3DeviceClaim { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceClaim { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) - private List config = null; + private List config = null; public static final String SERIALIZED_NAME_CONSTRAINTS = "constraints"; @SerializedName(SERIALIZED_NAME_CONSTRAINTS) - private List constraints = null; + private List constraints = null; public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) - private List requests = null; + private List requests = null; - public V1alpha3DeviceClaim config(List config) { + public V1DeviceClaim config(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<>(); } @@ -68,23 +68,23 @@ public V1alpha3DeviceClaim addConfigItem(V1alpha3DeviceClaimConfiguration config @javax.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(List config) { + public void setConfig(List config) { this.config = config; } - public V1alpha3DeviceClaim constraints(List constraints) { + public V1DeviceClaim constraints(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<>(); } @@ -99,23 +99,23 @@ public V1alpha3DeviceClaim addConstraintsItem(V1alpha3DeviceConstraint constrain @javax.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(List constraints) { + public void setConstraints(List constraints) { this.constraints = constraints; } - public V1alpha3DeviceClaim requests(List requests) { + public V1DeviceClaim requests(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<>(); } @@ -130,12 +130,12 @@ public V1alpha3DeviceClaim addRequestsItem(V1alpha3DeviceRequest requestsItem) { @javax.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(List requests) { + public void setRequests(List requests) { this.requests = requests; } @@ -148,10 +148,10 @@ public boolean equals(java.lang.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 @@ -163,7 +163,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"); 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 79% 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 382854c681..f6149271fb 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 @@ -19,7 +19,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; @@ -30,18 +30,18 @@ * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. */ @ApiModel(description = "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3DeviceClaimConfiguration { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceClaimConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) - private V1alpha3OpaqueDeviceConfiguration opaque; + private V1OpaqueDeviceConfiguration opaque; public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) private List requests = null; - public V1alpha3DeviceClaimConfiguration opaque(V1alpha3OpaqueDeviceConfiguration opaque) { + public V1DeviceClaimConfiguration opaque(V1OpaqueDeviceConfiguration opaque) { this.opaque = opaque; return this; @@ -54,23 +54,23 @@ public V1alpha3DeviceClaimConfiguration opaque(V1alpha3OpaqueDeviceConfiguration @javax.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3OpaqueDeviceConfiguration getOpaque() { + public V1OpaqueDeviceConfiguration getOpaque() { return opaque; } - public void setOpaque(V1alpha3OpaqueDeviceConfiguration opaque) { + public void setOpaque(V1OpaqueDeviceConfiguration opaque) { this.opaque = opaque; } - public V1alpha3DeviceClaimConfiguration requests(List requests) { + public V1DeviceClaimConfiguration requests(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<>(); } @@ -103,9 +103,9 @@ public boolean equals(java.lang.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 @@ -117,7 +117,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("}"); 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 84% 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 df5132e021..1f0ccfe9c7 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 @@ -19,8 +19,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; @@ -29,8 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3DeviceClass implements io.kubernetes.client.common.KubernetesObject { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) private String apiVersion; @@ -45,10 +45,10 @@ public class V1alpha3DeviceClass implements io.kubernetes.client.common.Kubernet public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - private V1alpha3DeviceClassSpec spec; + private V1DeviceClassSpec spec; - public V1alpha3DeviceClass apiVersion(String apiVersion) { + public V1DeviceClass apiVersion(String apiVersion) { this.apiVersion = apiVersion; return this; @@ -71,7 +71,7 @@ public void setApiVersion(String apiVersion) { } - public V1alpha3DeviceClass kind(String kind) { + public V1DeviceClass kind(String kind) { this.kind = kind; return this; @@ -94,7 +94,7 @@ public void setKind(String kind) { } - public V1alpha3DeviceClass metadata(V1ObjectMeta metadata) { + public V1DeviceClass metadata(V1ObjectMeta metadata) { this.metadata = metadata; return this; @@ -117,7 +117,7 @@ public void setMetadata(V1ObjectMeta metadata) { } - public V1alpha3DeviceClass spec(V1alpha3DeviceClassSpec spec) { + public V1DeviceClass spec(V1DeviceClassSpec spec) { this.spec = spec; return this; @@ -129,12 +129,12 @@ public V1alpha3DeviceClass spec(V1alpha3DeviceClassSpec spec) { **/ @ApiModelProperty(required = true, value = "") - public V1alpha3DeviceClassSpec getSpec() { + public V1DeviceClassSpec getSpec() { return spec; } - public void setSpec(V1alpha3DeviceClassSpec spec) { + public void setSpec(V1DeviceClassSpec spec) { this.spec = spec; } @@ -147,11 +147,11 @@ public boolean equals(java.lang.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 @@ -163,7 +163,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"); 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 76% 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 14f41c13b3..0497b3de6f 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 @@ -19,7 +19,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; @@ -28,14 +28,14 @@ * DeviceClassConfiguration is used in DeviceClass. */ @ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3DeviceClassConfiguration { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceClassConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) - private V1alpha3OpaqueDeviceConfiguration opaque; + private V1OpaqueDeviceConfiguration opaque; - public V1alpha3DeviceClassConfiguration opaque(V1alpha3OpaqueDeviceConfiguration opaque) { + public V1DeviceClassConfiguration opaque(V1OpaqueDeviceConfiguration opaque) { this.opaque = opaque; return this; @@ -48,12 +48,12 @@ public V1alpha3DeviceClassConfiguration opaque(V1alpha3OpaqueDeviceConfiguration @javax.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3OpaqueDeviceConfiguration getOpaque() { + public V1OpaqueDeviceConfiguration getOpaque() { return opaque; } - public void setOpaque(V1alpha3OpaqueDeviceConfiguration opaque) { + public void setOpaque(V1OpaqueDeviceConfiguration opaque) { this.opaque = opaque; } @@ -66,8 +66,8 @@ public boolean equals(java.lang.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 @@ -79,7 +79,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(); 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 81% 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 bfc3793638..b7352ce908 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 @@ -19,8 +19,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; @@ -31,15 +31,15 @@ * DeviceClassList is a collection of classes. */ @ApiModel(description = "DeviceClassList is a collection of classes.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3DeviceClassList implements io.kubernetes.client.common.KubernetesListObject { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList<>(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -50,7 +50,7 @@ public class V1alpha3DeviceClassList implements io.kubernetes.client.common.Kube private V1ListMeta metadata; - public V1alpha3DeviceClassList apiVersion(String apiVersion) { + public V1DeviceClassList apiVersion(String apiVersion) { this.apiVersion = apiVersion; return this; @@ -73,13 +73,13 @@ public void setApiVersion(String apiVersion) { } - public V1alpha3DeviceClassList items(List items) { + public V1DeviceClassList items(List items) { this.items = items; return this; } - public V1alpha3DeviceClassList addItemsItem(V1alpha3DeviceClass itemsItem) { + public V1DeviceClassList addItemsItem(V1DeviceClass itemsItem) { this.items.add(itemsItem); return this; } @@ -90,17 +90,17 @@ public V1alpha3DeviceClassList addItemsItem(V1alpha3DeviceClass itemsItem) { **/ @ApiModelProperty(required = true, value = "Items is the list of resource classes.") - public List getItems() { + public List getItems() { return items; } - public void setItems(List items) { + public void setItems(List items) { this.items = items; } - public V1alpha3DeviceClassList kind(String kind) { + public V1DeviceClassList kind(String kind) { this.kind = kind; return this; @@ -123,7 +123,7 @@ public void setKind(String kind) { } - public V1alpha3DeviceClassList metadata(V1ListMeta metadata) { + public V1DeviceClassList metadata(V1ListMeta metadata) { this.metadata = metadata; return this; @@ -154,11 +154,11 @@ public boolean equals(java.lang.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 @@ -170,7 +170,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"); 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 54% 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 225981ab81..4134e84e39 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 @@ -19,8 +19,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; @@ -31,24 +31,28 @@ * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3DeviceClassSpec { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) - private List config = null; + private List config = null; + + public static final String SERIALIZED_NAME_EXTENDED_RESOURCE_NAME = "extendedResourceName"; + @SerializedName(SERIALIZED_NAME_EXTENDED_RESOURCE_NAME) + private String extendedResourceName; public static final String SERIALIZED_NAME_SELECTORS = "selectors"; @SerializedName(SERIALIZED_NAME_SELECTORS) - private List selectors = null; + private List selectors = null; - public V1alpha3DeviceClassSpec config(List config) { + public V1DeviceClassSpec config(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<>(); } @@ -63,23 +67,46 @@ public V1alpha3DeviceClassSpec addConfigItem(V1alpha3DeviceClassConfiguration co @javax.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(List config) { + public void setConfig(List config) { this.config = config; } - public V1alpha3DeviceClassSpec selectors(List selectors) { + public V1DeviceClassSpec extendedResourceName(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 + **/ + @javax.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(String extendedResourceName) { + this.extendedResourceName = extendedResourceName; + } + + + public V1DeviceClassSpec selectors(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<>(); } @@ -94,12 +121,12 @@ public V1alpha3DeviceClassSpec addSelectorsItem(V1alpha3DeviceSelector selectors @javax.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(List selectors) { + public void setSelectors(List selectors) { this.selectors = selectors; } @@ -112,22 +139,24 @@ public boolean equals(java.lang.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(); 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 68% 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 a032c5f33e..38fc802f63 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 @@ -29,8 +29,12 @@ * DeviceConstraint must have exactly one field set besides Requests. */ @ApiModel(description = "DeviceConstraint must have exactly one field set besides Requests.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3DeviceConstraint { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceConstraint { + public static final String SERIALIZED_NAME_DISTINCT_ATTRIBUTE = "distinctAttribute"; + @SerializedName(SERIALIZED_NAME_DISTINCT_ATTRIBUTE) + private String distinctAttribute; + public static final String SERIALIZED_NAME_MATCH_ATTRIBUTE = "matchAttribute"; @SerializedName(SERIALIZED_NAME_MATCH_ATTRIBUTE) private String matchAttribute; @@ -40,7 +44,30 @@ public class V1alpha3DeviceConstraint { private List requests = null; - public V1alpha3DeviceConstraint matchAttribute(String matchAttribute) { + public V1DeviceConstraint distinctAttribute(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 + **/ + @javax.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(String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + } + + + public V1DeviceConstraint matchAttribute(String matchAttribute) { this.matchAttribute = matchAttribute; return this; @@ -63,13 +90,13 @@ public void setMatchAttribute(String matchAttribute) { } - public V1alpha3DeviceConstraint requests(List requests) { + public V1DeviceConstraint requests(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<>(); } @@ -102,21 +129,23 @@ public boolean equals(java.lang.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("}"); 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 64% 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 e6afb9cd37..d5fa2a4d05 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 @@ -19,7 +19,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; @@ -31,28 +31,28 @@ * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3DeviceCounterConsumption { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceCounterConsumption { public static final String SERIALIZED_NAME_COUNTER_SET = "counterSet"; @SerializedName(SERIALIZED_NAME_COUNTER_SET) private String counterSet; public static final String SERIALIZED_NAME_COUNTERS = "counters"; @SerializedName(SERIALIZED_NAME_COUNTERS) - private Map counters = new HashMap<>(); + private Map counters = new HashMap<>(); - public V1alpha3DeviceCounterConsumption counterSet(String counterSet) { + public V1DeviceCounterConsumption counterSet(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 **/ - @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; @@ -64,29 +64,29 @@ public void setCounterSet(String counterSet) { } - public V1alpha3DeviceCounterConsumption counters(Map counters) { + public V1DeviceCounterConsumption counters(Map counters) { this.counters = counters; return this; } - public V1alpha3DeviceCounterConsumption putCountersItem(String key, V1alpha3Counter countersItem) { + public V1DeviceCounterConsumption putCountersItem(String key, V1Counter countersItem) { this.counters.put(key, countersItem); return this; } /** - * Counters defines the Counter that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). + * 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 **/ - @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).") + @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() { + public Map getCounters() { return counters; } - public void setCounters(Map counters) { + public void setCounters(Map counters) { this.counters = counters; } @@ -99,9 +99,9 @@ public boolean equals(java.lang.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 @@ -113,7 +113,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("}"); 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..777af5487e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java @@ -0,0 +1,167 @@ +/* +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 java.util.Arrays; +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.List; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceRequest { + public static final String SERIALIZED_NAME_EXACTLY = "exactly"; + @SerializedName(SERIALIZED_NAME_EXACTLY) + private V1ExactDeviceRequest exactly; + + public static final String SERIALIZED_NAME_FIRST_AVAILABLE = "firstAvailable"; + @SerializedName(SERIALIZED_NAME_FIRST_AVAILABLE) + private List firstAvailable = null; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public V1DeviceRequest exactly(V1ExactDeviceRequest exactly) { + + this.exactly = exactly; + return this; + } + + /** + * Get exactly + * @return exactly + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ExactDeviceRequest getExactly() { + return exactly; + } + + + public void setExactly(V1ExactDeviceRequest exactly) { + this.exactly = exactly; + } + + + public V1DeviceRequest firstAvailable(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 + **/ + @javax.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(List firstAvailable) { + this.firstAvailable = firstAvailable; + } + + + public V1DeviceRequest name(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 + **/ + @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(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java new file mode 100644 index 0000000000..53978e6f1f --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java @@ -0,0 +1,393 @@ +/* +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 java.util.Arrays; +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.V1DeviceToleration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * DeviceRequestAllocationResult contains the allocation result for one request. + */ +@ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceRequestAllocationResult { + public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; + @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) + private Boolean adminAccess; + + public static final String SERIALIZED_NAME_BINDING_CONDITIONS = "bindingConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_CONDITIONS) + private List bindingConditions = null; + + public static final String SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS = "bindingFailureConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS) + private List bindingFailureConditions = null; + + public static final String SERIALIZED_NAME_CONSUMED_CAPACITY = "consumedCapacity"; + @SerializedName(SERIALIZED_NAME_CONSUMED_CAPACITY) + private Map consumedCapacity = null; + + public static final String SERIALIZED_NAME_DEVICE = "device"; + @SerializedName(SERIALIZED_NAME_DEVICE) + private String device; + + public static final String SERIALIZED_NAME_DRIVER = "driver"; + @SerializedName(SERIALIZED_NAME_DRIVER) + private String driver; + + public static final String SERIALIZED_NAME_POOL = "pool"; + @SerializedName(SERIALIZED_NAME_POOL) + private String pool; + + public static final String SERIALIZED_NAME_REQUEST = "request"; + @SerializedName(SERIALIZED_NAME_REQUEST) + private String request; + + public static final String SERIALIZED_NAME_SHARE_I_D = "shareID"; + @SerializedName(SERIALIZED_NAME_SHARE_I_D) + private String shareID; + + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; + @SerializedName(SERIALIZED_NAME_TOLERATIONS) + private List tolerations = null; + + + public V1DeviceRequestAllocationResult adminAccess(Boolean adminAccess) { + + this.adminAccess = adminAccess; + return this; + } + + /** + * AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + * @return adminAccess + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.") + + public Boolean getAdminAccess() { + return adminAccess; + } + + + public void setAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + } + + + public V1DeviceRequestAllocationResult bindingConditions(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 + **/ + @javax.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(List bindingConditions) { + this.bindingConditions = bindingConditions; + } + + + public V1DeviceRequestAllocationResult bindingFailureConditions(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 + **/ + @javax.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(List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + } + + + public V1DeviceRequestAllocationResult consumedCapacity(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 + **/ + @javax.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(Map consumedCapacity) { + this.consumedCapacity = consumedCapacity; + } + + + public V1DeviceRequestAllocationResult device(String device) { + + this.device = device; + return this; + } + + /** + * Device references one device instance via its name in the driver's resource pool. It must be a DNS label. + * @return device + **/ + @ApiModelProperty(required = true, value = "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.") + + public String getDevice() { + return device; + } + + + public void setDevice(String device) { + this.device = device; + } + + + public V1DeviceRequestAllocationResult driver(String driver) { + + this.driver = driver; + return this; + } + + /** + * Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. + * @return driver + **/ + @ApiModelProperty(required = true, value = "Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.") + + public String getDriver() { + return driver; + } + + + public void setDriver(String driver) { + this.driver = driver; + } + + + public V1DeviceRequestAllocationResult pool(String pool) { + + this.pool = pool; + return this; + } + + /** + * This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. + * @return pool + **/ + @ApiModelProperty(required = true, value = "This name together with the driver name and the device name field identify which device was allocated (`//`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.") + + public String getPool() { + return pool; + } + + + public void setPool(String pool) { + this.pool = pool; + } + + + public V1DeviceRequestAllocationResult request(String request) { + + this.request = request; + return this; + } + + /** + * Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. + * @return request + **/ + @ApiModelProperty(required = true, value = "Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
/. Multiple devices may have been allocated per request.") + + public String getRequest() { + return request; + } + + + public void setRequest(String request) { + this.request = request; + } + + + public V1DeviceRequestAllocationResult shareID(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 + **/ + @javax.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(String shareID) { + this.shareID = shareID; + } + + + public V1DeviceRequestAllocationResult tolerations(List tolerations) { + + this.tolerations = tolerations; + return this; + } + + public V1DeviceRequestAllocationResult addTolerationsItem(V1DeviceToleration tolerationsItem) { + if (this.tolerations == null) { + this.tolerations = new ArrayList<>(); + } + this.tolerations.add(tolerationsItem); + return this; + } + + /** + * A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * @return tolerations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + + public List getTolerations() { + return tolerations; + } + + + public void setTolerations(List tolerations) { + this.tolerations = tolerations; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + 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, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + 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(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java new file mode 100644 index 0000000000..66afb0e0aa --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java @@ -0,0 +1,99 @@ +/* +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 java.util.Arrays; +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.V1CELDeviceSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * DeviceSelector must have exactly one field set. + */ +@ApiModel(description = "DeviceSelector must have exactly one field set.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceSelector { + public static final String SERIALIZED_NAME_CEL = "cel"; + @SerializedName(SERIALIZED_NAME_CEL) + private V1CELDeviceSelector cel; + + + public V1DeviceSelector cel(V1CELDeviceSelector cel) { + + this.cel = cel; + return this; + } + + /** + * Get cel + * @return cel + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1CELDeviceSelector getCel() { + return cel; + } + + + public void setCel(V1CELDeviceSelector cel) { + this.cel = cel; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1DeviceSelector v1DeviceSelector = (V1DeviceSelector) o; + return Objects.equals(this.cel, v1DeviceSelector.cel); + } + + @Override + public int hashCode() { + return Objects.hash(cel); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1DeviceSelector {\n"); + sb.append(" cel: ").append(toIndentedString(cel)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 66% 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 da16e59099..da2f8fca9a 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 @@ -19,8 +19,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; @@ -28,15 +29,19 @@ import java.util.List; /** - * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceSubRequest { public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) private String allocationMode; + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + private V1CapacityRequirements capacity; + public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) private Long count; @@ -51,25 +56,25 @@ public class V1alpha3DeviceSubRequest { public static final String SERIALIZED_NAME_SELECTORS = "selectors"; @SerializedName(SERIALIZED_NAME_SELECTORS) - private List selectors = null; + private List selectors = null; public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; @SerializedName(SERIALIZED_NAME_TOLERATIONS) - private List tolerations = null; + private List tolerations = null; - public V1alpha3DeviceSubRequest allocationMode(String allocationMode) { + public V1DeviceSubRequest allocationMode(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 **/ @javax.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; @@ -81,7 +86,30 @@ public void setAllocationMode(String allocationMode) { } - public V1alpha3DeviceSubRequest count(Long count) { + public V1DeviceSubRequest capacity(V1CapacityRequirements capacity) { + + this.capacity = capacity; + return this; + } + + /** + * Get capacity + * @return capacity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1CapacityRequirements getCapacity() { + return capacity; + } + + + public void setCapacity(V1CapacityRequirements capacity) { + this.capacity = capacity; + } + + + public V1DeviceSubRequest count(Long count) { this.count = count; return this; @@ -104,7 +132,7 @@ public void setCount(Long count) { } - public V1alpha3DeviceSubRequest deviceClassName(String deviceClassName) { + public V1DeviceSubRequest deviceClassName(String deviceClassName) { this.deviceClassName = deviceClassName; return this; @@ -126,7 +154,7 @@ public void setDeviceClassName(String deviceClassName) { } - public V1alpha3DeviceSubRequest name(String name) { + public V1DeviceSubRequest name(String name) { this.name = name; return this; @@ -148,13 +176,13 @@ public void setName(String name) { } - public V1alpha3DeviceSubRequest selectors(List selectors) { + public V1DeviceSubRequest selectors(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<>(); } @@ -163,29 +191,29 @@ 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 **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.") + @ApiModelProperty(value = "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered.") - public List getSelectors() { + public List getSelectors() { return selectors; } - public void setSelectors(List selectors) { + public void setSelectors(List selectors) { this.selectors = selectors; } - public V1alpha3DeviceSubRequest tolerations(List tolerations) { + public V1DeviceSubRequest tolerations(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<>(); } @@ -200,12 +228,12 @@ public V1alpha3DeviceSubRequest addTolerationsItem(V1alpha3DeviceToleration tole @javax.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(List tolerations) { + public void setTolerations(List tolerations) { this.tolerations = tolerations; } @@ -218,26 +246,28 @@ public boolean equals(java.lang.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"); 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..e28b91f431 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java @@ -0,0 +1,184 @@ +/* +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 java.util.Arrays; +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; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceTaint { + public static final String SERIALIZED_NAME_EFFECT = "effect"; + @SerializedName(SERIALIZED_NAME_EFFECT) + private String effect; + + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_TIME_ADDED = "timeAdded"; + @SerializedName(SERIALIZED_NAME_TIME_ADDED) + private OffsetDateTime timeAdded; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; + + + public V1DeviceTaint effect(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 + **/ + @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(String effect) { + this.effect = effect; + } + + + public V1DeviceTaint key(String key) { + + this.key = key; + return this; + } + + /** + * The taint key to be applied to a device. Must be a label name. + * @return key + **/ + @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(String key) { + this.key = key; + } + + + public V1DeviceTaint timeAdded(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 + **/ + @javax.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(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + } + + + public V1DeviceTaint value(String value) { + + this.value = value; + return this; + } + + /** + * The taint value corresponding to the taint key. Must be a label value. + * @return value + **/ + @javax.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(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 88% 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 d1e2b501d0..b78be40e26 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 @@ -27,8 +27,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 .") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3DeviceToleration { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1DeviceToleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) private String effect; @@ -50,7 +50,7 @@ public class V1alpha3DeviceToleration { private String value; - public V1alpha3DeviceToleration effect(String effect) { + public V1DeviceToleration effect(String effect) { this.effect = effect; return this; @@ -73,7 +73,7 @@ public void setEffect(String effect) { } - public V1alpha3DeviceToleration key(String key) { + public V1DeviceToleration key(String key) { this.key = key; return this; @@ -96,7 +96,7 @@ public void setKey(String key) { } - public V1alpha3DeviceToleration operator(String operator) { + public V1DeviceToleration operator(String operator) { this.operator = operator; return this; @@ -119,7 +119,7 @@ public void setOperator(String operator) { } - public V1alpha3DeviceToleration tolerationSeconds(Long tolerationSeconds) { + public V1DeviceToleration tolerationSeconds(Long tolerationSeconds) { this.tolerationSeconds = tolerationSeconds; return this; @@ -142,7 +142,7 @@ public void setTolerationSeconds(Long tolerationSeconds) { } - public V1alpha3DeviceToleration value(String value) { + public V1DeviceToleration value(String value) { this.value = value; return this; @@ -173,12 +173,12 @@ public boolean equals(java.lang.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 @@ -190,7 +190,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"); 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 082a7ec253..bf52bec976 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 6cebce2613..fa77157508 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 @@ -29,7 +29,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d7b676a705..396d1863ba 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e663a4fbb1..9fd240ecf0 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 15b3db09a6..7e488b87bd 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 @@ -34,7 +34,7 @@ * Endpoint represents a single logical \"backend\" implementing a service. */ @ApiModel(description = "Endpoint represents a single logical \"backend\" implementing a service.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 1f01bfcc84..595fd1a75f 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 @@ -28,7 +28,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+.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 9d5575492d..edf9c24afa 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 @@ -27,7 +27,7 @@ * EndpointConditions represents the current condition of an endpoint. */ @ApiModel(description = "EndpointConditions represents the current condition of an endpoint.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d33f540818..43485c1255 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 @@ -31,7 +31,7 @@ * EndpointHints provides hints describing how an endpoint should be consumed. */ @ApiModel(description = "EndpointHints provides hints describing how an endpoint should be consumed.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b4f49caa9b..e352dba473 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 @@ -32,7 +32,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 13c3e45595..8481273767 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 @@ -31,7 +31,7 @@ * EndpointSliceList represents a list of endpoint slices */ @ApiModel(description = "EndpointSliceList represents a list of endpoint slices") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 70c0edfa4d..6c007c3e1d 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 @@ -31,7 +31,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+.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d83ee981a8..5f411af403 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 52aa633d48..4d56fd6036 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 @@ -31,7 +31,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+.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c57e322f40..6aa8b6a3df 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 @@ -29,7 +29,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1EnvFromSource { public static final String SERIALIZED_NAME_CONFIG_MAP_REF = "configMapRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_REF) @@ -74,11 +74,11 @@ public V1EnvFromSource prefix(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 **/ @javax.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 d375d3f941..4b11a36e93 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 @@ -28,7 +28,7 @@ * EnvVar represents an environment variable present in a Container. */ @ApiModel(description = "EnvVar represents an environment variable present in a Container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1EnvVar { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -50,10 +50,10 @@ public V1EnvVar name(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 **/ - @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 3400dca55d..3b38a8f1ea 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 @@ -20,6 +20,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; @@ -31,7 +32,7 @@ * EnvVarSource represents a source for the value of an EnvVar. */ @ApiModel(description = "EnvVarSource represents a source for the value of an EnvVar.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1EnvVarSource { public static final String SERIALIZED_NAME_CONFIG_MAP_KEY_REF = "configMapKeyRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_KEY_REF) @@ -41,6 +42,10 @@ public class V1EnvVarSource { @SerializedName(SERIALIZED_NAME_FIELD_REF) private V1ObjectFieldSelector fieldRef; + public static final String SERIALIZED_NAME_FILE_KEY_REF = "fileKeyRef"; + @SerializedName(SERIALIZED_NAME_FILE_KEY_REF) + private V1FileKeySelector fileKeyRef; + public static final String SERIALIZED_NAME_RESOURCE_FIELD_REF = "resourceFieldRef"; @SerializedName(SERIALIZED_NAME_RESOURCE_FIELD_REF) private V1ResourceFieldSelector resourceFieldRef; @@ -96,6 +101,29 @@ public void setFieldRef(V1ObjectFieldSelector fieldRef) { } + public V1EnvVarSource fileKeyRef(V1FileKeySelector fileKeyRef) { + + this.fileKeyRef = fileKeyRef; + return this; + } + + /** + * Get fileKeyRef + * @return fileKeyRef + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1FileKeySelector getFileKeyRef() { + return fileKeyRef; + } + + + public void setFileKeyRef(V1FileKeySelector fileKeyRef) { + this.fileKeyRef = fileKeyRef; + } + + public V1EnvVarSource resourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { this.resourceFieldRef = resourceFieldRef; @@ -153,13 +181,14 @@ public boolean equals(java.lang.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); } @@ -169,6 +198,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("}"); 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 8b35291e05..915b967a06 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 @@ -21,6 +21,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; @@ -39,7 +40,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1EphemeralContainer { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) @@ -97,6 +98,10 @@ public class V1EphemeralContainer { @SerializedName(SERIALIZED_NAME_RESTART_POLICY) private String restartPolicy; + public static final String SERIALIZED_NAME_RESTART_POLICY_RULES = "restartPolicyRules"; + @SerializedName(SERIALIZED_NAME_RESTART_POLICY_RULES) + private List restartPolicyRules = null; + public static final String SERIALIZED_NAME_SECURITY_CONTEXT = "securityContext"; @SerializedName(SERIALIZED_NAME_SECURITY_CONTEXT) private V1SecurityContext securityContext; @@ -250,11 +255,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 **/ @javax.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; @@ -495,11 +500,11 @@ public V1EphemeralContainer restartPolicy(String restartPolicy) { } /** - * 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 **/ @javax.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; @@ -511,6 +516,37 @@ public void setRestartPolicy(String restartPolicy) { } + public V1EphemeralContainer restartPolicyRules(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 + **/ + @javax.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(List restartPolicyRules) { + this.restartPolicyRules = restartPolicyRules; + } + + public V1EphemeralContainer securityContext(V1SecurityContext securityContext) { this.securityContext = securityContext; @@ -803,6 +839,7 @@ public boolean equals(java.lang.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) && @@ -818,7 +855,7 @@ public boolean equals(java.lang.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); } @@ -840,6 +877,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"); 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 f6be464c1b..ca5c69f582 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8a063401c1..6b16e3a82f 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 @@ -27,7 +27,7 @@ * EventSource contains information for an event. */ @ApiModel(description = "EventSource contains information for an event.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7670c2bcb1..bdc014a781 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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/V1ExactDeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java new file mode 100644 index 0000000000..1848b7f872 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java @@ -0,0 +1,292 @@ +/* +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 java.util.Arrays; +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.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; +import java.util.ArrayList; +import java.util.List; + +/** + * ExactDeviceRequest is a request for one or more identical devices. + */ +@ApiModel(description = "ExactDeviceRequest is a request for one or more identical devices.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1ExactDeviceRequest { + public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; + @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) + private Boolean adminAccess; + + public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; + @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) + private String allocationMode; + + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + private V1CapacityRequirements capacity; + + public static final String SERIALIZED_NAME_COUNT = "count"; + @SerializedName(SERIALIZED_NAME_COUNT) + private Long count; + + public static final String SERIALIZED_NAME_DEVICE_CLASS_NAME = "deviceClassName"; + @SerializedName(SERIALIZED_NAME_DEVICE_CLASS_NAME) + private String deviceClassName; + + public static final String SERIALIZED_NAME_SELECTORS = "selectors"; + @SerializedName(SERIALIZED_NAME_SELECTORS) + private List selectors = null; + + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; + @SerializedName(SERIALIZED_NAME_TOLERATIONS) + private List tolerations = null; + + + public V1ExactDeviceRequest adminAccess(Boolean adminAccess) { + + this.adminAccess = adminAccess; + return this; + } + + /** + * AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + * @return adminAccess + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.") + + public Boolean getAdminAccess() { + return adminAccess; + } + + + public void setAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + } + + + public V1ExactDeviceRequest allocationMode(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. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. + * @return allocationMode + **/ + @javax.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. More modes may get added in the future. Clients must refuse to handle requests with unknown modes.") + + public String getAllocationMode() { + return allocationMode; + } + + + public void setAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + } + + + public V1ExactDeviceRequest capacity(V1CapacityRequirements capacity) { + + this.capacity = capacity; + return this; + } + + /** + * Get capacity + * @return capacity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1CapacityRequirements getCapacity() { + return capacity; + } + + + public void setCapacity(V1CapacityRequirements capacity) { + this.capacity = capacity; + } + + + public V1ExactDeviceRequest count(Long count) { + + this.count = count; + return this; + } + + /** + * Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. + * @return count + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.") + + public Long getCount() { + return count; + } + + + public void setCount(Long count) { + this.count = count; + } + + + public V1ExactDeviceRequest deviceClassName(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 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 + **/ + @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 setDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + } + + + public V1ExactDeviceRequest selectors(List selectors) { + + this.selectors = selectors; + return this; + } + + public V1ExactDeviceRequest addSelectorsItem(V1DeviceSelector selectorsItem) { + if (this.selectors == null) { + this.selectors = new ArrayList<>(); + } + this.selectors.add(selectorsItem); + return this; + } + + /** + * Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. + * @return selectors + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.") + + public List getSelectors() { + return selectors; + } + + + public void setSelectors(List selectors) { + this.selectors = selectors; + } + + + public V1ExactDeviceRequest tolerations(List tolerations) { + + this.tolerations = tolerations; + return this; + } + + public V1ExactDeviceRequest addTolerationsItem(V1DeviceToleration tolerationsItem) { + if (this.tolerations == null) { + this.tolerations = new ArrayList<>(); + } + this.tolerations.add(tolerationsItem); + return this; + } + + /** + * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * @return tolerations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + + public List getTolerations() { + return tolerations; + } + + + public void setTolerations(List tolerations) { + this.tolerations = tolerations; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + 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, capacity, count, deviceClassName, selectors, tolerations); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + 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(" selectors: ").append(toIndentedString(selectors)).append("\n"); + sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 c09c517179..0de1306238 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 @@ -29,7 +29,7 @@ * ExecAction describes a \"run in container\" action. */ @ApiModel(description = "ExecAction describes a \"run in container\" action.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7275912c9c..7d4fd807fa 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 @@ -27,7 +27,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`.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 6a594f2b77..f3a27aa879 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 @@ -27,7 +27,7 @@ * ExpressionWarning is a warning information that targets a specific expression. */ @ApiModel(description = "ExpressionWarning is a warning information that targets a specific expression.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 928ddd65e9..401220c953 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 @@ -27,7 +27,7 @@ * ExternalDocumentation allows referencing an external resource for extended documentation. */ @ApiModel(description = "ExternalDocumentation allows referencing an external resource for extended documentation.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ff1b5423c2..75ea0a6791 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b03812aebf..e02ff3a5b3 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b3f47fe6b6..51754cc08e 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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..555f9bca92 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java @@ -0,0 +1,182 @@ +/* +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 java.util.Arrays; +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; + +/** + * FileKeySelector selects a key of the env file. + */ +@ApiModel(description = "FileKeySelector selects a key of the env file.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1FileKeySelector { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_OPTIONAL = "optional"; + @SerializedName(SERIALIZED_NAME_OPTIONAL) + private Boolean optional; + + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; + + public static final String SERIALIZED_NAME_VOLUME_NAME = "volumeName"; + @SerializedName(SERIALIZED_NAME_VOLUME_NAME) + private String volumeName; + + + public V1FileKeySelector key(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 + **/ + @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(String key) { + this.key = key; + } + + + public V1FileKeySelector optional(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 + **/ + @javax.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(Boolean optional) { + this.optional = optional; + } + + + public V1FileKeySelector path(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 + **/ + @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(String path) { + this.path = path; + } + + + public V1FileKeySelector volumeName(String volumeName) { + + this.volumeName = volumeName; + return this; + } + + /** + * The name of the volume mount containing the env file. + * @return volumeName + **/ + @ApiModelProperty(required = true, value = "The name of the volume mount containing the env file.") + + public String getVolumeName() { + return volumeName; + } + + + public void setVolumeName(String volumeName) { + this.volumeName = volumeName; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 bb46bad15c..442000880b 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a0fdef72da..a9141e2f2f 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 12f7815d2a..3ef2b02e0e 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 fdcf7e30e7..c8fd6b21b4 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 @@ -27,7 +27,7 @@ * FlowDistinguisherMethod specifies the method of a flow distinguisher. */ @ApiModel(description = "FlowDistinguisherMethod specifies the method of a flow distinguisher.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7bce94e809..a8b013f576 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 @@ -30,7 +30,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\".") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 078f07cbcb..9a038d1e9e 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 @@ -28,7 +28,7 @@ * FlowSchemaCondition describes conditions for a FlowSchema. */ @ApiModel(description = "FlowSchemaCondition describes conditions for a FlowSchema.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a81fcf7705..6833837a40 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 @@ -31,7 +31,7 @@ * FlowSchemaList is a list of FlowSchema objects. */ @ApiModel(description = "FlowSchemaList is a list of FlowSchema objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 5dbe5b3f48..5ec2122535 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 @@ -32,7 +32,7 @@ * FlowSchemaSpec describes how the FlowSchema's specification looks like. */ @ApiModel(description = "FlowSchemaSpec describes how the FlowSchema's specification looks like.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e9a1cd508e..f3eaedda13 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 @@ -30,7 +30,7 @@ * FlowSchemaStatus represents the current state of a FlowSchema. */ @ApiModel(description = "FlowSchemaStatus represents the current state of a FlowSchema.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b76aa3eda2..fb256b74ee 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 @@ -27,7 +27,7 @@ * ForNode provides information about which nodes should consume this endpoint. */ @ApiModel(description = "ForNode provides information about which nodes should consume this endpoint.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0c8ec8c73b..e94e9e9d94 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 @@ -27,7 +27,7 @@ * ForZone provides information about which zones should consume this endpoint. */ @ApiModel(description = "ForZone provides information about which zones should consume this endpoint.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a0fa93945a..c736bfa545 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3823ac46b7..150973bdc2 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 @@ -27,7 +27,7 @@ * GRPCAction specifies an action involving a GRPC service. */ @ApiModel(description = "GRPCAction specifies an action involving a GRPC service.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 2d508a6ee5..25e06cc13f 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 dca8d5a2e4..6013c4c887 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8c5bc1e686..0f1d197ca0 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1GlusterfsVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) @@ -49,10 +49,10 @@ public V1GlusterfsVolumeSource endpoints(String endpoints) { } /** - * 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 **/ - @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 7b5294608e..7a6a9050e9 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 @@ -27,7 +27,7 @@ * GroupSubject holds detailed information for group-kind subject. */ @ApiModel(description = "GroupSubject holds detailed information for group-kind subject.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 227f245d98..bfc6a7e8b0 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 035ec4dc11..153ec27dfa 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 @@ -31,7 +31,7 @@ * HTTPGetAction describes an action based on HTTP Get requests. */ @ApiModel(description = "HTTPGetAction describes an action based on HTTP Get requests.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 cae0d46aba..a377697ffd 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 @@ -27,7 +27,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4811d81c5a..a6b24a4856 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 cb85f61396..9c12ff6f2d 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 @@ -30,7 +30,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 '#'.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 aaca646f1e..00e9ddaf90 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 @@ -30,7 +30,7 @@ * configuration of a horizontal pod autoscaler. */ @ApiModel(description = "configuration of a horizontal pod autoscaler.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 12960bd193..98e2f7f869 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 @@ -31,7 +31,7 @@ * list of horizontal pod autoscaler objects. */ @ApiModel(description = "list of horizontal pod autoscaler objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f8c435ecb3..89ec55e950 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 @@ -28,7 +28,7 @@ * specification of a horizontal pod autoscaler. */ @ApiModel(description = "specification of a horizontal pod autoscaler.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 472d4721a5..605a28aec9 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 @@ -28,7 +28,7 @@ * current status of a horizontal pod autoscaler */ @ApiModel(description = "current status of a horizontal pod autoscaler") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 176d3be0b2..9f9e2ed495 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 91da32a9d4..306b046ba1 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 @@ -27,7 +27,7 @@ * HostIP represents a single IP address allocated to the host. */ @ApiModel(description = "HostIP represents a single IP address allocated to the host.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a3a66f18a4..6a9c028ad3 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4eb1b9bb0a..46f0dd8b59 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 @@ -29,7 +29,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0b5dbb025e..79484e0221 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 @@ -31,7 +31,7 @@ * IPAddressList contains a list of IPAddress. */ @ApiModel(description = "IPAddressList contains a list of IPAddress.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 61ded363e3..07b8e6d799 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 @@ -28,7 +28,7 @@ * IPAddressSpec describe the attributes in an IP Address. */ @ApiModel(description = "IPAddressSpec describe the attributes in an IP Address.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 2964a36235..ed1639ae48 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c927815250..17c22b54a6 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 54a0ac1ea1..4465340fc2 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 78e55b9aff..554014f7e2 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 @@ -27,7 +27,7 @@ * ImageVolumeSource represents a image volume resource. */ @ApiModel(description = "ImageVolumeSource represents a image volume resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f2e2fbc51a..b112dbcf5f 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 df1b6c5bae..1cbb80da0c 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 @@ -29,7 +29,7 @@ * IngressBackend describes all endpoints for a given service and port. */ @ApiModel(description = "IngressBackend describes all endpoints for a given service and port.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4fd4867241..fa8c69a900 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8afd3c0965..57c49955a3 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 @@ -31,7 +31,7 @@ * IngressClassList is a collection of IngressClasses. */ @ApiModel(description = "IngressClassList is a collection of IngressClasses.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 5bbf09801a..ee46d34611 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 de9e9ca3a8..dd243b7484 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 @@ -28,7 +28,7 @@ * IngressClassSpec provides information about the class of an Ingress. */ @ApiModel(description = "IngressClassSpec provides information about the class of an Ingress.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 390d9a3e66..a2f5ec0991 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 @@ -31,7 +31,7 @@ * IngressList is a collection of Ingress. */ @ApiModel(description = "IngressList is a collection of Ingress.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c4a8305c0f..e611b60b85 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 @@ -30,7 +30,7 @@ * IngressLoadBalancerIngress represents the status of a load-balancer ingress point. */ @ApiModel(description = "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 380583e46c..8284dae329 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 @@ -30,7 +30,7 @@ * IngressLoadBalancerStatus represents the status of a load-balancer. */ @ApiModel(description = "IngressLoadBalancerStatus represents the status of a load-balancer.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c86cd76275..d75a3b9a88 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 @@ -27,7 +27,7 @@ * IngressPortStatus represents the error condition of a service port */ @ApiModel(description = "IngressPortStatus represents the error condition of a service port") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f0b52ea87f..b1dc1771a2 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7d7d0d0f33..892556b224 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 @@ -28,7 +28,7 @@ * IngressServiceBackend references a Kubernetes Service as a Backend. */ @ApiModel(description = "IngressServiceBackend references a Kubernetes Service as a Backend.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4dadeca355..413b6d9bec 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 @@ -32,7 +32,7 @@ * IngressSpec describes the Ingress the user wishes to exist. */ @ApiModel(description = "IngressSpec describes the Ingress the user wishes to exist.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 1b2e2a1750..ba6cff166f 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 @@ -28,7 +28,7 @@ * IngressStatus describe the current state of the Ingress. */ @ApiModel(description = "IngressStatus describe the current state of the Ingress.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 90179ee3d5..1ede0e1ba2 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 @@ -29,7 +29,7 @@ * IngressTLS describes the transport layer security associated with an ingress. */ @ApiModel(description = "IngressTLS describes the transport layer security associated with an ingress.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b80d07f9bb..3d7ba6a167 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 @@ -33,7 +33,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/).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 79a4612883..1d8432179a 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 @@ -30,7 +30,7 @@ * Job represents the configuration of a single job. */ @ApiModel(description = "Job represents the configuration of a single job.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 6e62ac6cc8..6856e1798d 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 @@ -28,7 +28,7 @@ * JobCondition describes current state of a job. */ @ApiModel(description = "JobCondition describes current state of a job.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 aa4efdbbef..5226e07afa 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 @@ -31,7 +31,7 @@ * JobList is a collection of jobs. */ @ApiModel(description = "JobList is a collection of jobs.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b9f8450774..7fac53667b 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 @@ -31,7 +31,7 @@ * JobSpec describes how the job execution will look like. */ @ApiModel(description = "JobSpec describes how the job execution will look like.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1JobSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) @@ -128,11 +128,11 @@ public V1JobSpec backoffLimit(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 **/ @javax.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; @@ -335,11 +335,11 @@ public V1JobSpec podReplacementPolicy(String podReplacementPolicy) { } /** - * 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 **/ @javax.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 7e1deb5871..d9408936ef 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 @@ -32,7 +32,7 @@ * JobStatus represents the current state of a Job. */ @ApiModel(description = "JobStatus represents the current state of a Job.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4448643f81..9223f803da 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 @@ -29,7 +29,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 92e6185547..58542efc9c 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 @@ -27,7 +27,7 @@ * Maps a string key to a path within a volume. */ @ApiModel(description = "Maps a string key to a path within a volume.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 76821086ac..542bc7e30e 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 @@ -32,7 +32,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ed38108c75..b630242274 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 cc54f84a8d..e9fc3e258e 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ad5130f5b1..031f5d2cce 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 @@ -29,7 +29,7 @@ * Lease defines a lease concept. */ @ApiModel(description = "Lease defines a lease concept.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 2c64a26bb5..7a7a5cbc6b 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 @@ -31,7 +31,7 @@ * LeaseList is a list of Lease objects. */ @ApiModel(description = "LeaseList is a list of Lease objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 58b10d7995..4a65645621 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 @@ -28,7 +28,7 @@ * LeaseSpec is a specification of a Lease. */ @ApiModel(description = "LeaseSpec is a specification of a Lease.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8e2156b70a..6c60a9867d 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 dfb135b383..dd46a55e11 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 17e5fa748b..1d29eb6e62 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b812d8c51c..078415681f 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f4f57147d5..9de4e66b15 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 @@ -31,7 +31,7 @@ * LimitRangeList is a list of LimitRange items. */ @ApiModel(description = "LimitRangeList is a list of LimitRange items.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c8b9cd2325..a1f58f94eb 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 287f6a3284..428e6b6762 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 9c07dcd8e4..59c66aa537 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 @@ -28,7 +28,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?") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d5d6650f66..c7251bc076 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 @@ -29,7 +29,7 @@ * LinuxContainerUser represents user identity information in Linux containers */ @ApiModel(description = "LinuxContainerUser represents user identity information in Linux containers") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8a7f6741cb..ee59532190 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 @@ -27,7 +27,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}.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 521b7c98b2..0ee5fb5051 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f95e71cf43..7943e82557 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 @@ -30,7 +30,7 @@ * LoadBalancerStatus represents the status of a load-balancer. */ @ApiModel(description = "LoadBalancerStatus represents the status of a load-balancer.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3c981ae010..5744e24825 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 829c32baea..ddfce082d4 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b1e46b0293..4f8af6fbbb 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 @@ -27,7 +27,7 @@ * Local represents directly-attached storage with node affinity */ @ApiModel(description = "Local represents directly-attached storage with node affinity") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 1e059992be..eefeb97816 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b68dd0f595..134baf22eb 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 122c3e9274..841646b729 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 @@ -31,7 +31,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)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c136698ad4..fd052f3476 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 @@ -27,7 +27,7 @@ * ModifyVolumeStatus represents the status object of ControllerModifyVolume operation */ @ApiModel(description = "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 5933b7a03e..069455bade 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 @@ -33,7 +33,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b48cec5418..0813091a70 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4a0712a9d0..de59a233de 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 @@ -31,7 +31,7 @@ * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. */ @ApiModel(description = "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 5440115f1d..35308dacb0 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 fc743a3b79..00b017907b 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 @@ -29,7 +29,7 @@ * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ @ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0978990a20..ac98ea3096 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 eda6bf6736..9112438908 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 @@ -28,7 +28,7 @@ * NamespaceCondition contains details about state of namespace. */ @ApiModel(description = "NamespaceCondition contains details about state of namespace.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f07cab4ee7..9bd4be7c49 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 @@ -31,7 +31,7 @@ * NamespaceList is a list of Namespaces. */ @ApiModel(description = "NamespaceList is a list of Namespaces.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 17c818d2f5..1a6a0eaece 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 @@ -29,7 +29,7 @@ * NamespaceSpec describes the attributes on a Namespace. */ @ApiModel(description = "NamespaceSpec describes the attributes on a Namespace.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ca093d0364..0e2f8a5d89 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 @@ -30,7 +30,7 @@ * NamespaceStatus is information about the current status of a Namespace. */ @ApiModel(description = "NamespaceStatus is information about the current status of a Namespace.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 84% 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 206fdf0d03..77de5d6d76 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 @@ -29,8 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3NetworkDeviceData { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1NetworkDeviceData { public static final String SERIALIZED_NAME_HARDWARE_ADDRESS = "hardwareAddress"; @SerializedName(SERIALIZED_NAME_HARDWARE_ADDRESS) private String hardwareAddress; @@ -44,7 +44,7 @@ public class V1alpha3NetworkDeviceData { private List ips = null; - public V1alpha3NetworkDeviceData hardwareAddress(String hardwareAddress) { + public V1NetworkDeviceData hardwareAddress(String hardwareAddress) { this.hardwareAddress = hardwareAddress; return this; @@ -67,7 +67,7 @@ public void setHardwareAddress(String hardwareAddress) { } - public V1alpha3NetworkDeviceData interfaceName(String interfaceName) { + public V1NetworkDeviceData interfaceName(String interfaceName) { this.interfaceName = interfaceName; return this; @@ -90,13 +90,13 @@ public void setInterfaceName(String interfaceName) { } - public V1alpha3NetworkDeviceData ips(List ips) { + public V1NetworkDeviceData ips(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<>(); } @@ -105,11 +105,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 **/ @javax.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; @@ -129,10 +129,10 @@ public boolean equals(java.lang.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 @@ -144,7 +144,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"); 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 a5af0b3b0b..4943f17fdd 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 @@ -29,7 +29,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 cb6cf894fa..88149da4f8 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 @@ -31,7 +31,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 cc0d581c58..d60f938956 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e8ac9ec7f0..c2b79a550b 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 @@ -31,7 +31,7 @@ * NetworkPolicyList is a list of NetworkPolicy objects. */ @ApiModel(description = "NetworkPolicyList is a list of NetworkPolicy objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 fc72b06849..02425ee7a8 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 @@ -29,7 +29,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4e8a9342cc..2e8bde1cd1 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 @@ -28,7 +28,7 @@ * NetworkPolicyPort describes a port to allow traffic on */ @ApiModel(description = "NetworkPolicyPort describes a port to allow traffic on") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e8905876a5..16f0719096 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 @@ -32,7 +32,7 @@ * NetworkPolicySpec provides the specification of a NetworkPolicy */ @ApiModel(description = "NetworkPolicySpec provides the specification of a NetworkPolicy") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1NetworkPolicySpec { public static final String SERIALIZED_NAME_EGRESS = "egress"; @SerializedName(SERIALIZED_NAME_EGRESS) @@ -123,7 +123,8 @@ public V1NetworkPolicySpec podSelector(V1LabelSelector podSelector) { * Get podSelector * @return podSelector **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public V1LabelSelector getPodSelector() { return podSelector; 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 5b208f4256..91593fd2f3 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 @@ -30,7 +30,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).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 741917ea1e..5322ef35c3 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 @@ -27,7 +27,7 @@ * NodeAddress contains information for the node's address. */ @ApiModel(description = "NodeAddress contains information for the node's address.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d2412c6e6b..a1968c764c 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 @@ -31,7 +31,7 @@ * Node affinity is a group of node affinity scheduling rules. */ @ApiModel(description = "Node affinity is a group of node affinity scheduling rules.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b19919e422..85e94729d8 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 @@ -28,7 +28,7 @@ * NodeCondition contains condition information for a node. */ @ApiModel(description = "NodeCondition contains condition information for a node.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4e4e404338..3edc9d9d9a 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 @@ -28,7 +28,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 00a8dc4d05..5e01c4dc7b 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 1082a0370a..fd76cc7e24 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 @@ -28,7 +28,7 @@ * NodeDaemonEndpoints lists ports opened by daemons running on the Node. */ @ApiModel(description = "NodeDaemonEndpoints lists ports opened by daemons running on the Node.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4b2b35bf6b..056b128b23 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 60fe19c552..b2dc9d8c18 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 28513a36cc..197bf70603 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 @@ -28,7 +28,7 @@ * NodeRuntimeHandler is a set of runtime handler information. */ @ApiModel(description = "NodeRuntimeHandler is a set of runtime handler information.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a48f58f531..6200711bea 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 66be17d664..e9a4dc5943 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 fbaaeee883..fcbc57a37b 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d01284dbf0..cf4f3871fe 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 37e1b83e62..db124825d1 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 @@ -31,7 +31,7 @@ * NodeSpec describes the attributes that a node is created with. */ @ApiModel(description = "NodeSpec describes the attributes that a node is created with.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 82442c629e..576fbb5d2a 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 @@ -41,7 +41,7 @@ * NodeStatus is information about the current status of a node. */ @ApiModel(description = "NodeStatus is information about the current status of a node.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0224778519..ea263f8d00 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 @@ -27,7 +27,7 @@ * NodeSwapStatus represents swap memory information. */ @ApiModel(description = "NodeSwapStatus represents swap memory information.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 89fee1e190..0e6506c267 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 58a66252f5..77f6199a24 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 @@ -27,7 +27,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a8dbca9369..c405e279ae 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7f3426b4af..e4c05a5945 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 @@ -29,7 +29,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a4ec4b8f3d..8150c6a4ae 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 @@ -27,7 +27,7 @@ * ObjectFieldSelector selects an APIVersioned field of an object. */ @ApiModel(description = "ObjectFieldSelector selects an APIVersioned field of an object.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4968835970..975aa12618 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 @@ -34,7 +34,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a3ae0c19e3..be2002f865 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 87% 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 917e0221f8..09a675020a 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 @@ -27,8 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3OpaqueDeviceConfiguration { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1OpaqueDeviceConfiguration { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) private String driver; @@ -38,7 +38,7 @@ public class V1alpha3OpaqueDeviceConfiguration { private Object parameters; - public V1alpha3OpaqueDeviceConfiguration driver(String driver) { + public V1OpaqueDeviceConfiguration driver(String driver) { this.driver = driver; return this; @@ -60,7 +60,7 @@ public void setDriver(String driver) { } - public V1alpha3OpaqueDeviceConfiguration parameters(Object parameters) { + public V1OpaqueDeviceConfiguration parameters(Object parameters) { this.parameters = parameters; return this; @@ -90,9 +90,9 @@ public boolean equals(java.lang.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 @@ -104,7 +104,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("}"); 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 b7b6d529ac..a7d7ab2634 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 cfd11990aa..0c60481dcb 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d36d656ab4..e2cca7c39e 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 @@ -27,7 +27,7 @@ * ParamKind is a tuple of Group Kind and Version. */ @ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 97613e0d31..8436a76203 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d7049088bf..51d3ef2436 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 @@ -27,7 +27,7 @@ * ParentReference describes a reference to a parent object. */ @ApiModel(description = "ParentReference describes a reference to a parent object.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 18797b2e5a..35bc972de3 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 @@ -30,7 +30,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ac85436849..81410e819b 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 @@ -30,7 +30,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 545db1969b..1a9e375ea0 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 @@ -28,7 +28,7 @@ * PersistentVolumeClaimCondition contains details about state of pvc */ @ApiModel(description = "PersistentVolumeClaimCondition contains details about state of pvc") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 1fe0f21eb5..bb504679d6 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 @@ -31,7 +31,7 @@ * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. */ @ApiModel(description = "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 00717fc890..7decaf2d85 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 @@ -33,7 +33,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PersistentVolumeClaimSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -225,11 +225,11 @@ public V1PersistentVolumeClaimSpec volumeAttributesClassName(String volumeAttrib } /** - * 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 **/ @javax.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 bf742eaf09..ab9d67f9da 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 @@ -34,7 +34,7 @@ * PersistentVolumeClaimStatus is the current status of a persistent volume claim. */ @ApiModel(description = "PersistentVolumeClaimStatus is the current status of a persistent volume claim.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PersistentVolumeClaimStatus { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -231,11 +231,11 @@ public V1PersistentVolumeClaimStatus currentVolumeAttributesClassName(String cur } /** - * 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 **/ @javax.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 75a3e51b67..f249df4333 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0dea2fee27..4990daf2da 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 @@ -27,7 +27,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).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 9f3e0dca6d..47832b835c 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 @@ -31,7 +31,7 @@ * PersistentVolumeList is a list of PersistentVolume items. */ @ApiModel(description = "PersistentVolumeList is a list of PersistentVolume items.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 1241343aa7..8134f5e209 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 @@ -56,7 +56,7 @@ * PersistentVolumeSpec is the specification of a persistent volume. */ @ApiModel(description = "PersistentVolumeSpec is the specification of a persistent volume.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PersistentVolumeSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -858,11 +858,11 @@ public V1PersistentVolumeSpec volumeAttributesClassName(String volumeAttributesC } /** - * 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 **/ @javax.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 387756ca58..5cc179eb16 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 @@ -28,7 +28,7 @@ * PersistentVolumeStatus is the current status of a persistent volume. */ @ApiModel(description = "PersistentVolumeStatus is the current status of a persistent volume.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a62b40fd13..8c9f95d84f 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 @@ -27,7 +27,7 @@ * Represents a Photon Controller persistent disk resource. */ @ApiModel(description = "Represents a Photon Controller persistent disk resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0c2ddf4a65..c7ae5d1468 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 6b3db9f346..5623f90c41 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 312d448ba4..87536c6a45 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 @@ -30,7 +30,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 fe5fbd8f1f..bae571c801 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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) @@ -57,11 +57,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 **/ @javax.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..0b2e544a79 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java @@ -0,0 +1,241 @@ +/* +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 java.util.Arrays; +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; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1PodCertificateProjection { + public static final String SERIALIZED_NAME_CERTIFICATE_CHAIN_PATH = "certificateChainPath"; + @SerializedName(SERIALIZED_NAME_CERTIFICATE_CHAIN_PATH) + private String certificateChainPath; + + public static final String SERIALIZED_NAME_CREDENTIAL_BUNDLE_PATH = "credentialBundlePath"; + @SerializedName(SERIALIZED_NAME_CREDENTIAL_BUNDLE_PATH) + private String credentialBundlePath; + + public static final String SERIALIZED_NAME_KEY_PATH = "keyPath"; + @SerializedName(SERIALIZED_NAME_KEY_PATH) + private String keyPath; + + public static final String SERIALIZED_NAME_KEY_TYPE = "keyType"; + @SerializedName(SERIALIZED_NAME_KEY_TYPE) + private String keyType; + + public static final String SERIALIZED_NAME_MAX_EXPIRATION_SECONDS = "maxExpirationSeconds"; + @SerializedName(SERIALIZED_NAME_MAX_EXPIRATION_SECONDS) + private Integer maxExpirationSeconds; + + public static final String SERIALIZED_NAME_SIGNER_NAME = "signerName"; + @SerializedName(SERIALIZED_NAME_SIGNER_NAME) + private String signerName; + + + public V1PodCertificateProjection certificateChainPath(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 + **/ + @javax.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(String certificateChainPath) { + this.certificateChainPath = certificateChainPath; + } + + + public V1PodCertificateProjection credentialBundlePath(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 + **/ + @javax.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(String credentialBundlePath) { + this.credentialBundlePath = credentialBundlePath; + } + + + public V1PodCertificateProjection keyPath(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 + **/ + @javax.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(String keyPath) { + this.keyPath = keyPath; + } + + + public V1PodCertificateProjection keyType(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 + **/ + @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(String keyType) { + this.keyType = keyType; + } + + + public V1PodCertificateProjection maxExpirationSeconds(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 + **/ + @javax.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(Integer maxExpirationSeconds) { + this.maxExpirationSeconds = maxExpirationSeconds; + } + + + public V1PodCertificateProjection signerName(String signerName) { + + this.signerName = signerName; + return this; + } + + /** + * Kubelet's generated CSRs will be addressed to this signer. + * @return signerName + **/ + @ApiModelProperty(required = true, value = "Kubelet's generated CSRs will be addressed to this signer.") + + public String getSignerName() { + return signerName; + } + + + public void setSignerName(String signerName) { + this.signerName = signerName; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 de2648f538..fa201c3157 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 @@ -28,7 +28,7 @@ * PodCondition contains details for the current condition of this pod. */ @ApiModel(description = "PodCondition contains details for the current condition of this pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b8bd45d063..c01ed2fb98 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 db52d5527f..94f6ddc60b 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 @@ -27,7 +27,7 @@ * PodDNSConfigOption defines DNS resolver options of a pod. */ @ApiModel(description = "PodDNSConfigOption defines DNS resolver options of a pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 5a65fec810..09a71338ee 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 @@ -30,7 +30,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3c894c66b0..b546e6d9a9 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 @@ -31,7 +31,7 @@ * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. */ @ApiModel(description = "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 24be70ef0c..b162d47f03 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 @@ -29,7 +29,7 @@ * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. */ @ApiModel(description = "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 035008fd3e..75974f16fd 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 @@ -33,7 +33,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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..f34882833a --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java @@ -0,0 +1,133 @@ +/* +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 java.util.Arrays; +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.List; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1PodExtendedResourceClaimStatus { + public static final String SERIALIZED_NAME_REQUEST_MAPPINGS = "requestMappings"; + @SerializedName(SERIALIZED_NAME_REQUEST_MAPPINGS) + private List requestMappings = new ArrayList<>(); + + public static final String SERIALIZED_NAME_RESOURCE_CLAIM_NAME = "resourceClaimName"; + @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_NAME) + private String resourceClaimName; + + + public V1PodExtendedResourceClaimStatus requestMappings(List requestMappings) { + + this.requestMappings = requestMappings; + return this; + } + + public V1PodExtendedResourceClaimStatus addRequestMappingsItem(V1ContainerExtendedResourceRequest requestMappingsItem) { + 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 + **/ + @ApiModelProperty(required = true, value = "RequestMappings identifies the mapping of to device request in the generated ResourceClaim.") + + public List getRequestMappings() { + return requestMappings; + } + + + public void setRequestMappings(List requestMappings) { + this.requestMappings = requestMappings; + } + + + public V1PodExtendedResourceClaimStatus resourceClaimName(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 + **/ + @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(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 a9c4c5f653..5858bf161f 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 @@ -30,7 +30,7 @@ * PodFailurePolicy describes how failed pods influence the backoffLimit. */ @ApiModel(description = "PodFailurePolicy describes how failed pods influence the backoffLimit.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 2815132450..b262c9dbff 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d1bfb18a85..7df695078f 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c7d3cbfa52..64b6241993 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 24f9aaa50b..995f0b3a7d 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 @@ -27,7 +27,7 @@ * PodIP represents a single IP address allocated to the pod. */ @ApiModel(description = "PodIP represents a single IP address allocated to the pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 5efecc8bcf..592ddfa833 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 @@ -31,7 +31,7 @@ * PodList is a list of Pods. */ @ApiModel(description = "PodList is a list of Pods.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 020485dd16..a2f1b74f10 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 @@ -27,7 +27,7 @@ * PodOS defines the OS parameters of a pod. */ @ApiModel(description = "PodOS defines the OS parameters of a pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ada0d32c72..95537b43f0 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 @@ -27,7 +27,7 @@ * PodReadinessGate contains the reference to a pod condition */ @ApiModel(description = "PodReadinessGate contains the reference to a pod condition") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f523040182..64fd19199e 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3cb98f10ec..5c20986422 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 561138ad6f..97468aa429 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 @@ -27,7 +27,7 @@ * PodSchedulingGate is associated to a Pod to guard its scheduling. */ @ApiModel(description = "PodSchedulingGate is associated to a Pod to guard its scheduling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ddb52886a2..0ed41cbd9f 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 @@ -34,7 +34,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 bf703dbd0f..ed5b01ff23 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 @@ -47,7 +47,7 @@ * PodSpec is a description of a pod. */ @ApiModel(description = "PodSpec is a description of a pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PodSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) @@ -105,6 +105,10 @@ public class V1PodSpec { @SerializedName(SERIALIZED_NAME_HOSTNAME) private String hostname; + public static final String SERIALIZED_NAME_HOSTNAME_OVERRIDE = "hostnameOverride"; + @SerializedName(SERIALIZED_NAME_HOSTNAME_OVERRIDE) + private String hostnameOverride; + public static final String SERIALIZED_NAME_IMAGE_PULL_SECRETS = "imagePullSecrets"; @SerializedName(SERIALIZED_NAME_IMAGE_PULL_SECRETS) private List imagePullSecrets = null; @@ -467,11 +471,11 @@ public V1PodSpec hostNetwork(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 **/ @javax.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; @@ -552,6 +556,29 @@ public void setHostname(String hostname) { } + public V1PodSpec hostnameOverride(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 + **/ + @javax.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(String hostnameOverride) { + this.hostnameOverride = hostnameOverride; + } + + public V1PodSpec imagePullSecrets(List imagePullSecrets) { this.imagePullSecrets = imagePullSecrets; @@ -1253,6 +1280,7 @@ public boolean equals(java.lang.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) && @@ -1283,7 +1311,7 @@ public boolean equals(java.lang.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); } @@ -1305,6 +1333,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"); 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 e4e3a551b0..85eb59c7fb 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 @@ -22,6 +22,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; @@ -35,7 +36,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PodStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -49,6 +50,10 @@ public class V1PodStatus { @SerializedName(SERIALIZED_NAME_EPHEMERAL_CONTAINER_STATUSES) private List ephemeralContainerStatuses = null; + public static final String SERIALIZED_NAME_EXTENDED_RESOURCE_CLAIM_STATUS = "extendedResourceClaimStatus"; + @SerializedName(SERIALIZED_NAME_EXTENDED_RESOURCE_CLAIM_STATUS) + private V1PodExtendedResourceClaimStatus extendedResourceClaimStatus; + public static final String SERIALIZED_NAME_HOST_I_P = "hostIP"; @SerializedName(SERIALIZED_NAME_HOST_I_P) private String hostIP; @@ -199,6 +204,29 @@ public void setEphemeralContainerStatuses(List ephemeralConta } + public V1PodStatus extendedResourceClaimStatus(V1PodExtendedResourceClaimStatus extendedResourceClaimStatus) { + + this.extendedResourceClaimStatus = extendedResourceClaimStatus; + return this; + } + + /** + * Get extendedResourceClaimStatus + * @return extendedResourceClaimStatus + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1PodExtendedResourceClaimStatus getExtendedResourceClaimStatus() { + return extendedResourceClaimStatus; + } + + + public void setExtendedResourceClaimStatus(V1PodExtendedResourceClaimStatus extendedResourceClaimStatus) { + this.extendedResourceClaimStatus = extendedResourceClaimStatus; + } + + public V1PodStatus hostIP(String hostIP) { this.hostIP = hostIP; @@ -565,6 +593,7 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.conditions, v1PodStatus.conditions) && Objects.equals(this.containerStatuses, v1PodStatus.containerStatuses) && Objects.equals(this.ephemeralContainerStatuses, v1PodStatus.ephemeralContainerStatuses) && + Objects.equals(this.extendedResourceClaimStatus, v1PodStatus.extendedResourceClaimStatus) && Objects.equals(this.hostIP, v1PodStatus.hostIP) && Objects.equals(this.hostIPs, v1PodStatus.hostIPs) && Objects.equals(this.initContainerStatuses, v1PodStatus.initContainerStatuses) && @@ -583,7 +612,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(conditions, containerStatuses, ephemeralContainerStatuses, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, startTime); + return Objects.hash(conditions, containerStatuses, ephemeralContainerStatuses, extendedResourceClaimStatus, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, startTime); } @@ -594,6 +623,7 @@ public String toString() { sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" containerStatuses: ").append(toIndentedString(containerStatuses)).append("\n"); sb.append(" ephemeralContainerStatuses: ").append(toIndentedString(ephemeralContainerStatuses)).append("\n"); + sb.append(" extendedResourceClaimStatus: ").append(toIndentedString(extendedResourceClaimStatus)).append("\n"); sb.append(" hostIP: ").append(toIndentedString(hostIP)).append("\n"); sb.append(" hostIPs: ").append(toIndentedString(hostIPs)).append("\n"); sb.append(" initContainerStatuses: ").append(toIndentedString(initContainerStatuses)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java index eec6ddd3c1..aea843678f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java @@ -29,7 +29,7 @@ * PodTemplate describes a template for creating copies of a predefined pod. */ @ApiModel(description = "PodTemplate describes a template for creating copies of a predefined pod.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PodTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java index 37ec351116..7ea36b6a78 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java @@ -31,7 +31,7 @@ * PodTemplateList is a list of PodTemplates. */ @ApiModel(description = "PodTemplateList is a list of PodTemplates.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PodTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java index ca4f01e1a8..755807512d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java @@ -29,7 +29,7 @@ * PodTemplateSpec describes the data a pod should have when created from a template */ @ApiModel(description = "PodTemplateSpec describes the data a pod should have when created from a template") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PodTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java index e19d1239dd..6f2f6c4d9e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java @@ -29,7 +29,7 @@ * PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. */ @ApiModel(description = "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PolicyRule { 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/V1PolicyRulesWithSubjects.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java index 71c67cbe18..31a5097f85 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java @@ -32,7 +32,7 @@ * PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request. */ @ApiModel(description = "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PolicyRulesWithSubjects { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_RULES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java index c53b7c3636..dfa5ef9c11 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java @@ -27,7 +27,7 @@ * PortStatus represents the error condition of a service port */ @ApiModel(description = "PortStatus represents the error condition of a service port") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PortStatus { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java index 4c608f61cf..0029317ec4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java @@ -27,7 +27,7 @@ * PortworxVolumeSource represents a Portworx volume resource. */ @ApiModel(description = "PortworxVolumeSource represents a Portworx volume resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PortworxVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java index 10dbed2455..9c7ad838d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java @@ -27,7 +27,7 @@ * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. */ @ApiModel(description = "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1Preconditions { public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java index 52ebb529ef..a0458ea1c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java @@ -28,7 +28,7 @@ * An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). */ @ApiModel(description = "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PreferredSchedulingTerm { public static final String SERIALIZED_NAME_PREFERENCE = "preference"; @SerializedName(SERIALIZED_NAME_PREFERENCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java index 3c58d2f766..a4d3cf801b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java @@ -28,7 +28,7 @@ * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. */ @ApiModel(description = "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PriorityClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java index d546179b82..84417ac009 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java @@ -31,7 +31,7 @@ * PriorityClassList is a collection of priority classes. */ @ApiModel(description = "PriorityClassList is a collection of priority classes.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PriorityClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java index d6ee16cb95..0a4b8ad8cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java @@ -30,7 +30,7 @@ * PriorityLevelConfiguration represents the configuration of a priority level. */ @ApiModel(description = "PriorityLevelConfiguration represents the configuration of a priority level.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PriorityLevelConfiguration 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/V1PriorityLevelConfigurationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java index f0ea809c8f..ec2b927fd5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java @@ -28,7 +28,7 @@ * PriorityLevelConfigurationCondition defines the condition of priority level. */ @ApiModel(description = "PriorityLevelConfigurationCondition defines the condition of priority level.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PriorityLevelConfigurationCondition { 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/V1PriorityLevelConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java index c866561e65..d025ecb642 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java @@ -31,7 +31,7 @@ * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. */ @ApiModel(description = "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PriorityLevelConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java index 02e3565f83..4e75f9c952 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java @@ -27,7 +27,7 @@ * PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. */ @ApiModel(description = "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PriorityLevelConfigurationReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java index e18b6eb282..18f9cd5c16 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java @@ -29,7 +29,7 @@ * PriorityLevelConfigurationSpec specifies the configuration of a priority level. */ @ApiModel(description = "PriorityLevelConfigurationSpec specifies the configuration of a priority level.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PriorityLevelConfigurationSpec { public static final String SERIALIZED_NAME_EXEMPT = "exempt"; @SerializedName(SERIALIZED_NAME_EXEMPT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java index e0105d8b2e..dced1dc0af 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java @@ -30,7 +30,7 @@ * PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". */ @ApiModel(description = "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1PriorityLevelConfigurationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java index deaf0a0863..5a32d26e62 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java @@ -31,7 +31,7 @@ * Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. */ @ApiModel(description = "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1Probe { public static final String SERIALIZED_NAME_EXEC = "exec"; @SerializedName(SERIALIZED_NAME_EXEC) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java index 1839122840..6beceb8a1e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java @@ -30,7 +30,7 @@ * Represents a projected volume source */ @ApiModel(description = "Represents a projected volume source") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1ProjectedVolumeSource { 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/V1QueuingConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java index 433fa10fd3..e5741e2602 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java @@ -27,7 +27,7 @@ * QueuingConfiguration holds the configuration parameters for queuing */ @ApiModel(description = "QueuingConfiguration holds the configuration parameters for queuing") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1QueuingConfiguration { public static final String SERIALIZED_NAME_HAND_SIZE = "handSize"; @SerializedName(SERIALIZED_NAME_HAND_SIZE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java index 0c4e25f343..812594cb1b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java @@ -27,7 +27,7 @@ * Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1QuobyteVolumeSource { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java index e453bad831..f5fb49d412 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java @@ -30,7 +30,7 @@ * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1RBDPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java index ebc87fb616..cce0849b04 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java @@ -30,7 +30,7 @@ * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1RBDVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java index 3a10069abe..1673c9fac1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java @@ -30,7 +30,7 @@ * ReplicaSet ensures that a specified number of pod replicas are running at any given time. */ @ApiModel(description = "ReplicaSet ensures that a specified number of pod replicas are running at any given time.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1ReplicaSet 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/V1ReplicaSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java index 1e7b052845..1ef79e7c20 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java @@ -28,7 +28,7 @@ * ReplicaSetCondition describes the state of a replica set at a certain point. */ @ApiModel(description = "ReplicaSetCondition describes the state of a replica set at a certain point.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1ReplicaSetCondition { 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/V1ReplicaSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java index fa1bd69872..112ee92c7b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java @@ -31,7 +31,7 @@ * ReplicaSetList is a collection of ReplicaSets. */ @ApiModel(description = "ReplicaSetList is a collection of ReplicaSets.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1ReplicaSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java index 528fe2997d..8169d3e511 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java @@ -29,7 +29,7 @@ * ReplicaSetSpec is the specification of a ReplicaSet. */ @ApiModel(description = "ReplicaSetSpec is the specification of a ReplicaSet.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1ReplicaSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java index e60a57683b..c0a8154034 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java @@ -30,7 +30,7 @@ * ReplicaSetStatus represents the current status of a ReplicaSet. */ @ApiModel(description = "ReplicaSetStatus represents the current status of a ReplicaSet.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1ReplicaSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java index af82d566ea..0f74cc9e9d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java @@ -30,7 +30,7 @@ * ReplicationController represents the configuration of a replication controller. */ @ApiModel(description = "ReplicationController represents the configuration of a replication controller.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1ReplicationController implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java index 24f466a523..32536db9e3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java @@ -28,7 +28,7 @@ * ReplicationControllerCondition describes the state of a replication controller at a certain point. */ @ApiModel(description = "ReplicationControllerCondition describes the state of a replication controller at a certain point.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1ReplicationControllerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java index 89fd4b9d09..868481eb39 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java @@ -31,7 +31,7 @@ * ReplicationControllerList is a collection of replication controllers. */ @ApiModel(description = "ReplicationControllerList is a collection of replication controllers.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1ReplicationControllerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java index 4c88353785..739720588e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java @@ -31,7 +31,7 @@ * ReplicationControllerSpec is the specification of a replication controller. */ @ApiModel(description = "ReplicationControllerSpec is the specification of a replication controller.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1ReplicationControllerSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java index b7bbf3bfa6..c77a4df6d7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java @@ -30,7 +30,7 @@ * ReplicationControllerStatus represents the current status of a replication controller. */ @ApiModel(description = "ReplicationControllerStatus represents the current status of a replication controller.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1ReplicationControllerStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java index d80bc18700..b86dfe2672 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java @@ -29,7 +29,7 @@ * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface */ @ApiModel(description = "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1ResourceAttributes { public static final String SERIALIZED_NAME_FIELD_SELECTOR = "fieldSelector"; @SerializedName(SERIALIZED_NAME_FIELD_SELECTOR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java similarity index 83% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReference.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java index ff715b5e28..e82161558e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimConsumerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java @@ -27,8 +27,8 @@ * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3ResourceClaimConsumerReference { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1ResourceClaimConsumerReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) private String apiGroup; @@ -46,7 +46,7 @@ public class V1alpha3ResourceClaimConsumerReference { private String uid; - public V1alpha3ResourceClaimConsumerReference apiGroup(String apiGroup) { + public V1ResourceClaimConsumerReference apiGroup(String apiGroup) { this.apiGroup = apiGroup; return this; @@ -69,7 +69,7 @@ public void setApiGroup(String apiGroup) { } - public V1alpha3ResourceClaimConsumerReference name(String name) { + public V1ResourceClaimConsumerReference name(String name) { this.name = name; return this; @@ -91,7 +91,7 @@ public void setName(String name) { } - public V1alpha3ResourceClaimConsumerReference resource(String resource) { + public V1ResourceClaimConsumerReference resource(String resource) { this.resource = resource; return this; @@ -113,7 +113,7 @@ public void setResource(String resource) { } - public V1alpha3ResourceClaimConsumerReference uid(String uid) { + public V1ResourceClaimConsumerReference uid(String uid) { this.uid = uid; return this; @@ -143,11 +143,11 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha3ResourceClaimConsumerReference v1alpha3ResourceClaimConsumerReference = (V1alpha3ResourceClaimConsumerReference) o; - return Objects.equals(this.apiGroup, v1alpha3ResourceClaimConsumerReference.apiGroup) && - Objects.equals(this.name, v1alpha3ResourceClaimConsumerReference.name) && - Objects.equals(this.resource, v1alpha3ResourceClaimConsumerReference.resource) && - Objects.equals(this.uid, v1alpha3ResourceClaimConsumerReference.uid); + V1ResourceClaimConsumerReference v1ResourceClaimConsumerReference = (V1ResourceClaimConsumerReference) o; + return Objects.equals(this.apiGroup, v1ResourceClaimConsumerReference.apiGroup) && + Objects.equals(this.name, v1ResourceClaimConsumerReference.name) && + Objects.equals(this.resource, v1ResourceClaimConsumerReference.resource) && + Objects.equals(this.uid, v1ResourceClaimConsumerReference.uid); } @Override @@ -159,7 +159,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3ResourceClaimConsumerReference {\n"); + sb.append("class V1ResourceClaimConsumerReference {\n"); sb.append(" apiGroup: ").append(toIndentedString(apiGroup)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); 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 81% 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 85b6e98f91..d992a86a75 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 @@ -19,8 +19,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; @@ -31,15 +31,15 @@ * ResourceClaimList is a collection of claims. */ @ApiModel(description = "ResourceClaimList is a collection of claims.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3ResourceClaimList implements io.kubernetes.client.common.KubernetesListObject { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1ResourceClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList<>(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -50,7 +50,7 @@ public class V1alpha3ResourceClaimList implements io.kubernetes.client.common.Ku private V1ListMeta metadata; - public V1alpha3ResourceClaimList apiVersion(String apiVersion) { + public V1ResourceClaimList apiVersion(String apiVersion) { this.apiVersion = apiVersion; return this; @@ -73,13 +73,13 @@ public void setApiVersion(String apiVersion) { } - public V1alpha3ResourceClaimList items(List items) { + public V1ResourceClaimList items(List items) { this.items = items; return this; } - public V1alpha3ResourceClaimList addItemsItem(V1alpha3ResourceClaim itemsItem) { + public V1ResourceClaimList addItemsItem(ResourceV1ResourceClaim itemsItem) { this.items.add(itemsItem); return this; } @@ -90,17 +90,17 @@ public V1alpha3ResourceClaimList addItemsItem(V1alpha3ResourceClaim itemsItem) { **/ @ApiModelProperty(required = true, value = "Items is the list of resource claims.") - public List getItems() { + public List getItems() { return items; } - public void setItems(List items) { + public void setItems(List items) { this.items = items; } - public V1alpha3ResourceClaimList kind(String kind) { + public V1ResourceClaimList kind(String kind) { this.kind = kind; return this; @@ -123,7 +123,7 @@ public void setKind(String kind) { } - public V1alpha3ResourceClaimList metadata(V1ListMeta metadata) { + public V1ResourceClaimList metadata(V1ListMeta metadata) { this.metadata = metadata; return this; @@ -154,11 +154,11 @@ public boolean equals(java.lang.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 @@ -170,7 +170,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"); 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 79% 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 0315bd9b68..1ffaf5e06c 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 @@ -19,7 +19,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; @@ -28,14 +28,14 @@ * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3ResourceClaimSpec { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1ResourceClaimSpec { public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) - private V1alpha3DeviceClaim devices; + private V1DeviceClaim devices; - public V1alpha3ResourceClaimSpec devices(V1alpha3DeviceClaim devices) { + public V1ResourceClaimSpec devices(V1DeviceClaim devices) { this.devices = devices; return this; @@ -48,12 +48,12 @@ public V1alpha3ResourceClaimSpec devices(V1alpha3DeviceClaim devices) { @javax.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3DeviceClaim getDevices() { + public V1DeviceClaim getDevices() { return devices; } - public void setDevices(V1alpha3DeviceClaim devices) { + public void setDevices(V1DeviceClaim devices) { this.devices = devices; } @@ -66,8 +66,8 @@ public boolean equals(java.lang.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 @@ -79,7 +79,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(); 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 76% 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 007a69f693..96616272ac 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 @@ -19,9 +19,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; @@ -32,22 +32,22 @@ * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3ResourceClaimStatus { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1ResourceClaimStatus { public static final String SERIALIZED_NAME_ALLOCATION = "allocation"; @SerializedName(SERIALIZED_NAME_ALLOCATION) - private V1alpha3AllocationResult allocation; + private V1AllocationResult allocation; public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) - private List devices = null; + private List devices = null; public static final String SERIALIZED_NAME_RESERVED_FOR = "reservedFor"; @SerializedName(SERIALIZED_NAME_RESERVED_FOR) - private List reservedFor = null; + private List reservedFor = null; - public V1alpha3ResourceClaimStatus allocation(V1alpha3AllocationResult allocation) { + public V1ResourceClaimStatus allocation(V1AllocationResult allocation) { this.allocation = allocation; return this; @@ -60,23 +60,23 @@ public V1alpha3ResourceClaimStatus allocation(V1alpha3AllocationResult allocatio @javax.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha3AllocationResult getAllocation() { + public V1AllocationResult getAllocation() { return allocation; } - public void setAllocation(V1alpha3AllocationResult allocation) { + public void setAllocation(V1AllocationResult allocation) { this.allocation = allocation; } - public V1alpha3ResourceClaimStatus devices(List devices) { + public V1ResourceClaimStatus devices(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<>(); } @@ -91,23 +91,23 @@ public V1alpha3ResourceClaimStatus addDevicesItem(V1alpha3AllocatedDeviceStatus @javax.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(List devices) { + public void setDevices(List devices) { this.devices = devices; } - public V1alpha3ResourceClaimStatus reservedFor(List reservedFor) { + public V1ResourceClaimStatus reservedFor(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<>(); } @@ -122,12 +122,12 @@ public V1alpha3ResourceClaimStatus addReservedForItem(V1alpha3ResourceClaimConsu @javax.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(List reservedFor) { + public void setReservedFor(List reservedFor) { this.reservedFor = reservedFor; } @@ -140,10 +140,10 @@ public boolean equals(java.lang.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 @@ -155,7 +155,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"); 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 81% 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 3a28ad9fb5..2947e5b292 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 @@ -20,7 +20,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; @@ -29,8 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3ResourceClaimTemplate implements io.kubernetes.client.common.KubernetesObject { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1ResourceClaimTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) private String apiVersion; @@ -45,10 +45,10 @@ public class V1alpha3ResourceClaimTemplate implements io.kubernetes.client.commo public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - private V1alpha3ResourceClaimTemplateSpec spec; + private V1ResourceClaimTemplateSpec spec; - public V1alpha3ResourceClaimTemplate apiVersion(String apiVersion) { + public V1ResourceClaimTemplate apiVersion(String apiVersion) { this.apiVersion = apiVersion; return this; @@ -71,7 +71,7 @@ public void setApiVersion(String apiVersion) { } - public V1alpha3ResourceClaimTemplate kind(String kind) { + public V1ResourceClaimTemplate kind(String kind) { this.kind = kind; return this; @@ -94,7 +94,7 @@ public void setKind(String kind) { } - public V1alpha3ResourceClaimTemplate metadata(V1ObjectMeta metadata) { + public V1ResourceClaimTemplate metadata(V1ObjectMeta metadata) { this.metadata = metadata; return this; @@ -117,7 +117,7 @@ public void setMetadata(V1ObjectMeta metadata) { } - public V1alpha3ResourceClaimTemplate spec(V1alpha3ResourceClaimTemplateSpec spec) { + public V1ResourceClaimTemplate spec(V1ResourceClaimTemplateSpec spec) { this.spec = spec; return this; @@ -129,12 +129,12 @@ public V1alpha3ResourceClaimTemplate spec(V1alpha3ResourceClaimTemplateSpec spec **/ @ApiModelProperty(required = true, value = "") - public V1alpha3ResourceClaimTemplateSpec getSpec() { + public V1ResourceClaimTemplateSpec getSpec() { return spec; } - public void setSpec(V1alpha3ResourceClaimTemplateSpec spec) { + public void setSpec(V1ResourceClaimTemplateSpec spec) { this.spec = spec; } @@ -147,11 +147,11 @@ public boolean equals(java.lang.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 @@ -163,7 +163,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"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java similarity index 79% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateList.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java index 9f01996458..66d37b47c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java @@ -20,7 +20,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.V1ResourceClaimTemplate; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -31,15 +31,15 @@ * ResourceClaimTemplateList is a collection of claim templates. */ @ApiModel(description = "ResourceClaimTemplateList is a collection of claim templates.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3ResourceClaimTemplateList implements io.kubernetes.client.common.KubernetesListObject { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1ResourceClaimTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList<>(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -50,7 +50,7 @@ public class V1alpha3ResourceClaimTemplateList implements io.kubernetes.client.c private V1ListMeta metadata; - public V1alpha3ResourceClaimTemplateList apiVersion(String apiVersion) { + public V1ResourceClaimTemplateList apiVersion(String apiVersion) { this.apiVersion = apiVersion; return this; @@ -73,13 +73,13 @@ public void setApiVersion(String apiVersion) { } - public V1alpha3ResourceClaimTemplateList items(List items) { + public V1ResourceClaimTemplateList items(List items) { this.items = items; return this; } - public V1alpha3ResourceClaimTemplateList addItemsItem(V1alpha3ResourceClaimTemplate itemsItem) { + public V1ResourceClaimTemplateList addItemsItem(V1ResourceClaimTemplate itemsItem) { this.items.add(itemsItem); return this; } @@ -90,17 +90,17 @@ public V1alpha3ResourceClaimTemplateList addItemsItem(V1alpha3ResourceClaimTempl **/ @ApiModelProperty(required = true, value = "Items is the list of resource claim templates.") - public List getItems() { + public List getItems() { return items; } - public void setItems(List items) { + public void setItems(List items) { this.items = items; } - public V1alpha3ResourceClaimTemplateList kind(String kind) { + public V1ResourceClaimTemplateList kind(String kind) { this.kind = kind; return this; @@ -123,7 +123,7 @@ public void setKind(String kind) { } - public V1alpha3ResourceClaimTemplateList metadata(V1ListMeta metadata) { + public V1ResourceClaimTemplateList metadata(V1ListMeta metadata) { this.metadata = metadata; return this; @@ -154,11 +154,11 @@ public boolean equals(java.lang.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); + 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 @@ -170,7 +170,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3ResourceClaimTemplateList {\n"); + 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"); 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 77% 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 66c487dcbb..fdccdccf9c 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 @@ -20,7 +20,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; @@ -29,18 +29,18 @@ * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. */ @ApiModel(description = "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3ResourceClaimTemplateSpec { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - private V1alpha3ResourceClaimSpec spec; + private V1ResourceClaimSpec spec; - public V1alpha3ResourceClaimTemplateSpec metadata(V1ObjectMeta metadata) { + public V1ResourceClaimTemplateSpec metadata(V1ObjectMeta metadata) { this.metadata = metadata; return this; @@ -63,7 +63,7 @@ public void setMetadata(V1ObjectMeta metadata) { } - public V1alpha3ResourceClaimTemplateSpec spec(V1alpha3ResourceClaimSpec spec) { + public V1ResourceClaimTemplateSpec spec(V1ResourceClaimSpec spec) { this.spec = spec; return this; @@ -75,12 +75,12 @@ public V1alpha3ResourceClaimTemplateSpec spec(V1alpha3ResourceClaimSpec spec) { **/ @ApiModelProperty(required = true, value = "") - public V1alpha3ResourceClaimSpec getSpec() { + public V1ResourceClaimSpec getSpec() { return spec; } - public void setSpec(V1alpha3ResourceClaimSpec spec) { + public void setSpec(V1ResourceClaimSpec spec) { this.spec = spec; } @@ -93,9 +93,9 @@ public boolean equals(java.lang.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 @@ -107,7 +107,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("}"); 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 74aae72615..83c78fa15b 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 @@ -28,7 +28,7 @@ * ResourceFieldSelector represents container resources (cpu, memory) and their output format */ @ApiModel(description = "ResourceFieldSelector represents container resources (cpu, memory) and their output format") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 1f28692ede..24db45220d 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3bc49ad7fa..d599271e39 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 90% 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 abc732465d..0aa3b4ad7e 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 @@ -27,8 +27,8 @@ * ResourcePool describes the pool that ResourceSlices belong to. */ @ApiModel(description = "ResourcePool describes the pool that ResourceSlices belong to.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3ResourcePool { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1ResourcePool { public static final String SERIALIZED_NAME_GENERATION = "generation"; @SerializedName(SERIALIZED_NAME_GENERATION) private Long generation; @@ -42,7 +42,7 @@ public class V1alpha3ResourcePool { private Long resourceSliceCount; - public V1alpha3ResourcePool generation(Long generation) { + public V1ResourcePool generation(Long generation) { this.generation = generation; return this; @@ -64,7 +64,7 @@ public void setGeneration(Long generation) { } - public V1alpha3ResourcePool name(String name) { + public V1ResourcePool name(String name) { this.name = name; return this; @@ -86,7 +86,7 @@ public void setName(String name) { } - public V1alpha3ResourcePool resourceSliceCount(Long resourceSliceCount) { + public V1ResourcePool resourceSliceCount(Long resourceSliceCount) { this.resourceSliceCount = resourceSliceCount; return this; @@ -116,10 +116,10 @@ public boolean equals(java.lang.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 @@ -131,7 +131,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"); 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 234120809c..c86a1c3b3e 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 @@ -30,7 +30,7 @@ * ResourceQuota sets aggregate quota restrictions enforced per namespace */ @ApiModel(description = "ResourceQuota sets aggregate quota restrictions enforced per namespace") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d4e20c3f25..dfe45ff82d 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 @@ -31,7 +31,7 @@ * ResourceQuotaList is a list of ResourceQuota items. */ @ApiModel(description = "ResourceQuotaList is a list of ResourceQuota items.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0f8cb1b063..1030a50d0d 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 @@ -33,7 +33,7 @@ * ResourceQuotaSpec defines the desired hard limits to enforce for Quota. */ @ApiModel(description = "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 944f8a4469..74cac65c76 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 @@ -31,7 +31,7 @@ * ResourceQuotaStatus defines the enforced hard limits and observed use. */ @ApiModel(description = "ResourceQuotaStatus defines the enforced hard limits and observed use.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 63450472ae..c6943755a7 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 @@ -20,7 +20,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; @@ -33,11 +33,11 @@ * ResourceRequirements describes the compute resource requirements. */ @ApiModel(description = "ResourceRequirements describes the compute resource requirements.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1ResourceRequirements { public static final String SERIALIZED_NAME_CLAIMS = "claims"; @SerializedName(SERIALIZED_NAME_CLAIMS) - private List claims = null; + private List claims = null; public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) @@ -48,13 +48,13 @@ public class V1ResourceRequirements { private Map requests = null; - public V1ResourceRequirements claims(List claims) { + public V1ResourceRequirements claims(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<>(); } @@ -63,18 +63,18 @@ 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 **/ @javax.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.") + @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() { + public List getClaims() { return claims; } - public void setClaims(List claims) { + public void setClaims(List claims) { this.claims = claims; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java index 532fce8333..614cf097a4 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 88% 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 be34d79967..fdadee9ebe 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 @@ -20,7 +20,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; @@ -29,8 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3ResourceSlice implements io.kubernetes.client.common.KubernetesObject { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1ResourceSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) private String apiVersion; @@ -45,10 +45,10 @@ public class V1alpha3ResourceSlice implements io.kubernetes.client.common.Kubern public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - private V1alpha3ResourceSliceSpec spec; + private V1ResourceSliceSpec spec; - public V1alpha3ResourceSlice apiVersion(String apiVersion) { + public V1ResourceSlice apiVersion(String apiVersion) { this.apiVersion = apiVersion; return this; @@ -71,7 +71,7 @@ public void setApiVersion(String apiVersion) { } - public V1alpha3ResourceSlice kind(String kind) { + public V1ResourceSlice kind(String kind) { this.kind = kind; return this; @@ -94,7 +94,7 @@ public void setKind(String kind) { } - public V1alpha3ResourceSlice metadata(V1ObjectMeta metadata) { + public V1ResourceSlice metadata(V1ObjectMeta metadata) { this.metadata = metadata; return this; @@ -117,7 +117,7 @@ public void setMetadata(V1ObjectMeta metadata) { } - public V1alpha3ResourceSlice spec(V1alpha3ResourceSliceSpec spec) { + public V1ResourceSlice spec(V1ResourceSliceSpec spec) { this.spec = spec; return this; @@ -129,12 +129,12 @@ public V1alpha3ResourceSlice spec(V1alpha3ResourceSliceSpec spec) { **/ @ApiModelProperty(required = true, value = "") - public V1alpha3ResourceSliceSpec getSpec() { + public V1ResourceSliceSpec getSpec() { return spec; } - public void setSpec(V1alpha3ResourceSliceSpec spec) { + public void setSpec(V1ResourceSliceSpec spec) { this.spec = spec; } @@ -147,11 +147,11 @@ public boolean equals(java.lang.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 @@ -163,7 +163,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"); 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 81% 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 737236b3e9..bfeec02f7e 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 @@ -20,7 +20,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; @@ -31,15 +31,15 @@ * ResourceSliceList is a collection of ResourceSlices. */ @ApiModel(description = "ResourceSliceList is a collection of ResourceSlices.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3ResourceSliceList implements io.kubernetes.client.common.KubernetesListObject { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1ResourceSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList<>(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -50,7 +50,7 @@ public class V1alpha3ResourceSliceList implements io.kubernetes.client.common.Ku private V1ListMeta metadata; - public V1alpha3ResourceSliceList apiVersion(String apiVersion) { + public V1ResourceSliceList apiVersion(String apiVersion) { this.apiVersion = apiVersion; return this; @@ -73,13 +73,13 @@ public void setApiVersion(String apiVersion) { } - public V1alpha3ResourceSliceList items(List items) { + public V1ResourceSliceList items(List items) { this.items = items; return this; } - public V1alpha3ResourceSliceList addItemsItem(V1alpha3ResourceSlice itemsItem) { + public V1ResourceSliceList addItemsItem(V1ResourceSlice itemsItem) { this.items.add(itemsItem); return this; } @@ -90,17 +90,17 @@ public V1alpha3ResourceSliceList addItemsItem(V1alpha3ResourceSlice itemsItem) { **/ @ApiModelProperty(required = true, value = "Items is the list of resource ResourceSlices.") - public List getItems() { + public List getItems() { return items; } - public void setItems(List items) { + public void setItems(List items) { this.items = items; } - public V1alpha3ResourceSliceList kind(String kind) { + public V1ResourceSliceList kind(String kind) { this.kind = kind; return this; @@ -123,7 +123,7 @@ public void setKind(String kind) { } - public V1alpha3ResourceSliceList metadata(V1ListMeta metadata) { + public V1ResourceSliceList metadata(V1ListMeta metadata) { this.metadata = metadata; return this; @@ -154,11 +154,11 @@ public boolean equals(java.lang.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 @@ -170,7 +170,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"); 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 79% 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 7dbecd6d52..1ace06201e 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 @@ -19,10 +19,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; @@ -33,15 +33,15 @@ * ResourceSliceSpec contains the information published by the driver in one ResourceSlice. */ @ApiModel(description = "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3ResourceSliceSpec { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1ResourceSliceSpec { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) private Boolean allNodes; public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) - private List devices = null; + private List devices = null; public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) @@ -61,14 +61,14 @@ public class V1alpha3ResourceSliceSpec { public static final String SERIALIZED_NAME_POOL = "pool"; @SerializedName(SERIALIZED_NAME_POOL) - private V1alpha3ResourcePool pool; + private V1ResourcePool pool; public static final String SERIALIZED_NAME_SHARED_COUNTERS = "sharedCounters"; @SerializedName(SERIALIZED_NAME_SHARED_COUNTERS) - private List sharedCounters = null; + private List sharedCounters = null; - public V1alpha3ResourceSliceSpec allNodes(Boolean allNodes) { + public V1ResourceSliceSpec allNodes(Boolean allNodes) { this.allNodes = allNodes; return this; @@ -91,13 +91,13 @@ public void setAllNodes(Boolean allNodes) { } - public V1alpha3ResourceSliceSpec devices(List devices) { + public V1ResourceSliceSpec devices(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<>(); } @@ -112,17 +112,17 @@ public V1alpha3ResourceSliceSpec addDevicesItem(V1alpha3Device devicesItem) { @javax.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(List devices) { + public void setDevices(List devices) { this.devices = devices; } - public V1alpha3ResourceSliceSpec driver(String driver) { + public V1ResourceSliceSpec driver(String driver) { this.driver = driver; return this; @@ -144,7 +144,7 @@ public void setDriver(String driver) { } - public V1alpha3ResourceSliceSpec nodeName(String nodeName) { + public V1ResourceSliceSpec nodeName(String nodeName) { this.nodeName = nodeName; return this; @@ -167,7 +167,7 @@ public void setNodeName(String nodeName) { } - public V1alpha3ResourceSliceSpec nodeSelector(V1NodeSelector nodeSelector) { + public V1ResourceSliceSpec nodeSelector(V1NodeSelector nodeSelector) { this.nodeSelector = nodeSelector; return this; @@ -190,7 +190,7 @@ public void setNodeSelector(V1NodeSelector nodeSelector) { } - public V1alpha3ResourceSliceSpec perDeviceNodeSelection(Boolean perDeviceNodeSelection) { + public V1ResourceSliceSpec perDeviceNodeSelection(Boolean perDeviceNodeSelection) { this.perDeviceNodeSelection = perDeviceNodeSelection; return this; @@ -213,7 +213,7 @@ public void setPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { } - public V1alpha3ResourceSliceSpec pool(V1alpha3ResourcePool pool) { + public V1ResourceSliceSpec pool(V1ResourcePool pool) { this.pool = pool; return this; @@ -225,23 +225,23 @@ public V1alpha3ResourceSliceSpec pool(V1alpha3ResourcePool pool) { **/ @ApiModelProperty(required = true, value = "") - public V1alpha3ResourcePool getPool() { + public V1ResourcePool getPool() { return pool; } - public void setPool(V1alpha3ResourcePool pool) { + public void setPool(V1ResourcePool pool) { this.pool = pool; } - public V1alpha3ResourceSliceSpec sharedCounters(List sharedCounters) { + public V1ResourceSliceSpec sharedCounters(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<>(); } @@ -250,18 +250,18 @@ 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 **/ @javax.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.") + @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() { + public List getSharedCounters() { return sharedCounters; } - public void setSharedCounters(List sharedCounters) { + public void setSharedCounters(List sharedCounters) { this.sharedCounters = sharedCounters; } @@ -274,15 +274,15 @@ public boolean equals(java.lang.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 @@ -294,7 +294,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"); 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 73551e5d5e..c591689548 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e4ebeb32c1..1f2215dbef 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 86afa9516d..27694b4fc1 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 @@ -32,7 +32,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 cdb61114c5..bbb148601b 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 @@ -31,7 +31,7 @@ * RoleBindingList is a collection of RoleBindings */ @ApiModel(description = "RoleBindingList is a collection of RoleBindings") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8e84f055ab..71362ff6c0 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 @@ -31,7 +31,7 @@ * RoleList is a collection of Roles */ @ApiModel(description = "RoleList is a collection of Roles") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d005c23b27..829a58ec68 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 @@ -27,7 +27,7 @@ * RoleRef contains information that points to the role being used */ @ApiModel(description = "RoleRef contains information that points to the role being used") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7b3e7acd54..ef52940b27 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b1ce3bce7e..ab24bc53c0 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 @@ -28,7 +28,7 @@ * Spec to control the desired behavior of rolling update. */ @ApiModel(description = "Spec to control the desired behavior of rolling update.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 62f45404f9..47f78bc187 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 @@ -28,7 +28,7 @@ * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. */ @ApiModel(description = "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c87e56f071..9c51bdef2f 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c92c8418f4..a3b54eea89 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 @@ -30,7 +30,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/") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 cf277a05fa..9196a53066 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 @@ -31,7 +31,7 @@ * RuntimeClassList is a list of RuntimeClass objects. */ @ApiModel(description = "RuntimeClassList is a list of RuntimeClass objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 05dcb73b4b..63c481a1cd 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 @@ -27,7 +27,7 @@ * SELinuxOptions are the labels to be applied to the container */ @ApiModel(description = "SELinuxOptions are the labels to be applied to the container") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4a490f16e8..efc52b17ce 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 @@ -30,7 +30,7 @@ * Scale represents a scaling request for a resource. */ @ApiModel(description = "Scale represents a scaling request for a resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ea08277518..9a88926236 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 @@ -28,7 +28,7 @@ * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume */ @ApiModel(description = "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 933e2c4a4f..269c83b051 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 @@ -28,7 +28,7 @@ * ScaleIOVolumeSource represents a persistent ScaleIO volume */ @ApiModel(description = "ScaleIOVolumeSource represents a persistent ScaleIO volume") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f938cf0b5a..bf2b760476 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 @@ -27,7 +27,7 @@ * ScaleSpec describes the attributes of a scale subresource. */ @ApiModel(description = "ScaleSpec describes the attributes of a scale subresource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 5af8000426..37e127c4b1 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 @@ -27,7 +27,7 @@ * ScaleStatus represents the current status of a scale subresource. */ @ApiModel(description = "ScaleStatus represents the current status of a scale subresource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d709fc133e..bcbc495172 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 @@ -32,7 +32,7 @@ * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. */ @ApiModel(description = "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 6886035241..816fc03b01 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 99f2c183a7..ffec7349ea 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e0f2cef4d9..4347ff435d 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 46d9268d18..1a7745b8cd 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 @@ -32,7 +32,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 37054d286a..070a0adf9e 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e292460b33..71f45ee651 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 @@ -27,7 +27,7 @@ * SecretKeySelector selects a key of a Secret. */ @ApiModel(description = "SecretKeySelector selects a key of a Secret.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0192e31618..7f9f0da8c6 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 @@ -31,7 +31,7 @@ * SecretList is a list of Secret. */ @ApiModel(description = "SecretList is a list of Secret.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 717bddd52c..9b70234399 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 62caebc4cf..2507d4b9e5 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 @@ -27,7 +27,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 2d8bac2d73..3d3b80fbea 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8da0a89180..537b186cc5 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 @@ -32,7 +32,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a9e025698c..0a9939b434 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 606ff80eb9..ba6494cbd2 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 @@ -30,7 +30,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 737516678f..8cfff2cb01 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 @@ -29,7 +29,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 700aeb988c..0ee9dc1793 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 57bb8a9f47..b3593c2a16 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a9f1970259..354c8e81a7 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8940178ab2..6bc00984d9 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 @@ -27,7 +27,7 @@ * SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. */ @ApiModel(description = "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 517734df8b..256951368e 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 61f28701b4..de3ccb5e70 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 dd81f7fcd1..55a583bd11 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 @@ -32,7 +32,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 079425c55e..44239c646a 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 @@ -31,7 +31,7 @@ * ServiceAccountList is a list of ServiceAccount objects */ @ApiModel(description = "ServiceAccountList is a list of ServiceAccount objects") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 463f6db110..947505628f 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 @@ -27,7 +27,7 @@ * ServiceAccountSubject holds detailed information for service-account-kind subject. */ @ApiModel(description = "ServiceAccountSubject holds detailed information for service-account-kind subject.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7c878b11dc..ba0a882188 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 @@ -27,7 +27,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).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d030a73532..030d6c4cd2 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 @@ -27,7 +27,7 @@ * ServiceBackendPort is the service port being referenced. */ @ApiModel(description = "ServiceBackendPort is the service port being referenced.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 5a7ebd23d2..3998dc70e1 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8f296600cc..1159dd9c08 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 @@ -31,7 +31,7 @@ * ServiceCIDRList contains a list of ServiceCIDR objects. */ @ApiModel(description = "ServiceCIDRList contains a list of ServiceCIDR objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7cdc54a870..8d2b0a44e3 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 753c108fc2..fae9516e6b 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 @@ -30,7 +30,7 @@ * ServiceCIDRStatus describes the current state of the ServiceCIDR. */ @ApiModel(description = "ServiceCIDRStatus describes the current state of the ServiceCIDR.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 782e1b8c8e..f9b26f4670 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 @@ -31,7 +31,7 @@ * ServiceList holds a list of services. */ @ApiModel(description = "ServiceList holds a list of services.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f3d785273b..f65117de99 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 @@ -28,7 +28,7 @@ * ServicePort contains information on service's port. */ @ApiModel(description = "ServicePort contains information on service's port.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 da4485a62f..1b25ad9426 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 @@ -33,7 +33,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 92def7e3ec..ff13ec848f 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 @@ -31,7 +31,7 @@ * ServiceStatus represents the current status of a service. */ @ApiModel(description = "ServiceStatus represents the current status of a service.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7bf6e7aeb6..01b8e676db 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 @@ -28,7 +28,7 @@ * SessionAffinityConfig represents the configurations of session affinity. */ @ApiModel(description = "SessionAffinityConfig represents the configurations of session affinity.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0204bc4123..fb5e5d80d7 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 @@ -27,7 +27,7 @@ * SleepAction describes a \"sleep\" action. */ @ApiModel(description = "SleepAction describes a \"sleep\" action.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c437969d8a..7b343e2700 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 19fe80ff24..b73a242a01 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 eddd0f0c45..beb47b1533 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 @@ -31,7 +31,7 @@ * StatefulSetList is a collection of StatefulSets. */ @ApiModel(description = "StatefulSetList is a collection of StatefulSets.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 db4c9ccf26..d20cadbdfe 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 acf402fa65..677eb7915a 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 9c2209ed87..014b00a2b7 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 @@ -35,7 +35,7 @@ * A StatefulSetSpec is the specification of a StatefulSet. */ @ApiModel(description = "A StatefulSetSpec is the specification of a StatefulSet.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7e25439cae..499cdd85e4 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 @@ -30,7 +30,7 @@ * StatefulSetStatus represents the current state of a StatefulSet. */ @ApiModel(description = "StatefulSetStatus represents the current state of a StatefulSet.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d128472ed8..73f8073300 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0105ef7ba2..e75049eb15 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 cd807e2d64..16959ba7d3 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c6fe32430b..cacdb11c4e 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 1e5c828983..1abca206b9 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 @@ -33,7 +33,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d1d50fb87d..2af54e5d74 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 @@ -31,7 +31,7 @@ * StorageClassList is a collection of storage classes. */ @ApiModel(description = "StorageClassList is a collection of storage classes.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 37228bfb33..9adc020a96 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 @@ -28,7 +28,7 @@ * Represents a StorageOS persistent volume resource. */ @ApiModel(description = "Represents a StorageOS persistent volume resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 78fd47b348..8f213bc4b8 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 @@ -28,7 +28,7 @@ * Represents a StorageOS persistent volume resource. */ @ApiModel(description = "Represents a StorageOS persistent volume resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 25cb8e0257..df1cf587b0 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0af6ff92e6..81669d81b7 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 @@ -33,7 +33,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 82a97514a5..19d8b25507 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 @@ -27,7 +27,7 @@ * SubjectAccessReviewStatus */ @ApiModel(description = "SubjectAccessReviewStatus") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 367759fe89..7278fea487 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d38fd9e5e9..54d82e82cf 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1SuccessPolicy { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) @@ -49,10 +49,10 @@ 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 **/ - @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 8060b25e4b..b18bd4dd7d 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3dbf60caf1..d3b5798584 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 @@ -27,7 +27,7 @@ * Sysctl defines a kernel parameter to be set */ @ApiModel(description = "Sysctl defines a kernel parameter to be set") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ccdfcf1ebd..dbef20b1e2 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 @@ -28,7 +28,7 @@ * TCPSocketAction describes an action based on opening a socket */ @ApiModel(description = "TCPSocketAction describes an action based on opening a socket") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ff619ae659..dbfc22f21a 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1Taint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -98,11 +98,11 @@ public V1Taint timeAdded(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 **/ @javax.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 ccb2cc1d17..1caf87dfc5 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 @@ -30,7 +30,7 @@ * TokenRequestSpec contains client provided parameters of a token request. */ @ApiModel(description = "TokenRequestSpec contains client provided parameters of a token request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 fbd0e46741..60244c0c5e 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 @@ -28,7 +28,7 @@ * TokenRequestStatus is the result of a token request. */ @ApiModel(description = "TokenRequestStatus is the result of a token request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b95e830baf..d54d18c25e 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 5eb7de396d..6b6bef1b7c 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 @@ -29,7 +29,7 @@ * TokenReviewSpec is a description of the token authentication request. */ @ApiModel(description = "TokenReviewSpec is a description of the token authentication request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 91565c1d2a..e92d3a9dc8 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 @@ -30,7 +30,7 @@ * TokenReviewStatus is the result of the token authentication request. */ @ApiModel(description = "TokenReviewStatus is the result of the token authentication request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 9ebd8f5b8f..2133aac545 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 @@ -27,7 +27,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 .") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8c5b93cd0c..26b109200a 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 29ad65ea9e..e891fe3ae8 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d198fa36e4..208f23b28a 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 9c240f2114..2f55213341 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 @@ -30,7 +30,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 cc792a14ee..866b99cbfc 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c82dd89526..37d86a82fb 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 @@ -27,7 +27,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 15f3a50a3e..58fc637152 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 06d40b43a0..e861336bdc 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 70e5cec577..327d5422bf 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 @@ -27,7 +27,7 @@ * UserSubject holds detailed information for user-kind subject. */ @ApiModel(description = "UserSubject holds detailed information for user-kind subject.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 866f8d6a1b..a6c47efe13 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 19a4c04dc2..5747feae68 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b277828d35..21cbac4c45 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 @@ -31,7 +31,7 @@ * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. */ @ApiModel(description = "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 cdd7c851da..1fe9d6b7dc 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 @@ -31,7 +31,7 @@ * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. */ @ApiModel(description = "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8f036e0eff..0a1e8aaa3a 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 @@ -31,7 +31,7 @@ * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. */ @ApiModel(description = "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e4e78bd220..3eac08328c 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 @@ -35,7 +35,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 eaa530bfbd..3a174535d5 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 @@ -31,7 +31,7 @@ * ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. */ @ApiModel(description = "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4531e0293d..34bc052b8d 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 @@ -33,7 +33,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0eaa86e92b..277c12c8d6 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7c23e88748..3f65f9ed07 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 @@ -31,7 +31,7 @@ * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. */ @ApiModel(description = "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d2b1a0c440..da48b40cfc 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7f3301144b..73c230df6f 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f02f9bedce..d6b79301b5 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 120e3c5d1e..49fe7c5b20 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 @@ -57,7 +57,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 85211e5ecb..bf3960735c 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 9dc88dc012..0d0bbb6a8b 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 @@ -31,7 +31,7 @@ * VolumeAttachmentList is a collection of VolumeAttachment objects. */ @ApiModel(description = "VolumeAttachmentList is a collection of VolumeAttachment objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 87c2774710..74a6d8699c 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b2cd66ebc0..9b2da0c178 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 @@ -28,7 +28,7 @@ * VolumeAttachmentSpec is the specification of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentSpec is the specification of a VolumeAttachment request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ab263cca80..ae7667da90 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 @@ -31,7 +31,7 @@ * VolumeAttachmentStatus is the status of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentStatus is the status of a VolumeAttachment request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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..a048ea096e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java @@ -0,0 +1,225 @@ +/* +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 java.util.Arrays; +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.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1VolumeAttributesClass implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_DRIVER_NAME = "driverName"; + @SerializedName(SERIALIZED_NAME_DRIVER_NAME) + private String driverName; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; + @SerializedName(SERIALIZED_NAME_PARAMETERS) + private Map parameters = null; + + + public V1VolumeAttributesClass apiVersion(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 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") + + public String getApiVersion() { + return apiVersion; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1VolumeAttributesClass driverName(String driverName) { + + this.driverName = driverName; + return this; + } + + /** + * Name of the CSI driver This field is immutable. + * @return driverName + **/ + @ApiModelProperty(required = true, value = "Name of the CSI driver This field is immutable.") + + public String getDriverName() { + return driverName; + } + + + public void setDriverName(String driverName) { + this.driverName = driverName; + } + + + public V1VolumeAttributesClass kind(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 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + + public String getKind() { + return kind; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1VolumeAttributesClass metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1VolumeAttributesClass parameters(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 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.") + + public Map getParameters() { + return parameters; + } + + + public void setParameters(Map parameters) { + this.parameters = parameters; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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..429a41cf69 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java @@ -0,0 +1,193 @@ +/* +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 java.util.Arrays; +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.List; + +/** + * VolumeAttributesClassList is a collection of VolumeAttributesClass objects. + */ +@ApiModel(description = "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1VolumeAttributesClassList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; + + + public V1VolumeAttributesClassList apiVersion(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 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") + + public String getApiVersion() { + return apiVersion; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1VolumeAttributesClassList items(List items) { + + this.items = items; + return this; + } + + public V1VolumeAttributesClassList addItemsItem(V1VolumeAttributesClass itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * items is the list of VolumeAttributesClass objects. + * @return items + **/ + @ApiModelProperty(required = true, value = "items is the list of VolumeAttributesClass objects.") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1VolumeAttributesClassList kind(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 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + + public String getKind() { + return kind; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1VolumeAttributesClassList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 82a0329487..1089c5f929 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 afdd5bc0fa..b6a903d241 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 @@ -28,7 +28,7 @@ * VolumeError captures an error encountered during a volume operation. */ @ApiModel(description = "VolumeError captures an error encountered during a volume operation.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1VolumeError { public static final String SERIALIZED_NAME_ERROR_CODE = "errorCode"; @SerializedName(SERIALIZED_NAME_ERROR_CODE) @@ -50,11 +50,11 @@ public V1VolumeError errorCode(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 **/ @javax.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 e6c80e90ca..eb9264d996 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 @@ -27,7 +27,7 @@ * VolumeMount describes a mounting of a Volume within a container. */ @ApiModel(description = "VolumeMount describes a mounting of a Volume within a container.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 bdeb875cca..f18ec06018 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 @@ -27,7 +27,7 @@ * VolumeMountStatus shows status of volume mounts. */ @ApiModel(description = "VolumeMountStatus shows status of volume mounts.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 af44f24343..aac27dc03d 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 2d181c9c38..c7850b01e0 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ec87b8091d..3b62af5b41 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 @@ -22,6 +22,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; @@ -32,7 +33,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1VolumeProjection { public static final String SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE = "clusterTrustBundle"; @SerializedName(SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE) @@ -46,6 +47,10 @@ public class V1VolumeProjection { @SerializedName(SERIALIZED_NAME_DOWNWARD_A_P_I) private V1DownwardAPIProjection downwardAPI; + public static final String SERIALIZED_NAME_POD_CERTIFICATE = "podCertificate"; + @SerializedName(SERIALIZED_NAME_POD_CERTIFICATE) + private V1PodCertificateProjection podCertificate; + public static final String SERIALIZED_NAME_SECRET = "secret"; @SerializedName(SERIALIZED_NAME_SECRET) private V1SecretProjection secret; @@ -124,6 +129,29 @@ public void setDownwardAPI(V1DownwardAPIProjection downwardAPI) { } + public V1VolumeProjection podCertificate(V1PodCertificateProjection podCertificate) { + + this.podCertificate = podCertificate; + return this; + } + + /** + * Get podCertificate + * @return podCertificate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1PodCertificateProjection getPodCertificate() { + return podCertificate; + } + + + public void setPodCertificate(V1PodCertificateProjection podCertificate) { + this.podCertificate = podCertificate; + } + + public V1VolumeProjection secret(V1SecretProjection secret) { this.secret = secret; @@ -182,13 +210,14 @@ public boolean equals(java.lang.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); } @@ -199,6 +228,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("}"); 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 cf0d95147b..5e1eb124aa 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 @@ -31,7 +31,7 @@ * VolumeResourceRequirements describes the storage resource requirements for a volume. */ @ApiModel(description = "VolumeResourceRequirements describes the storage resource requirements for a volume.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3cdf59d331..69b65e15e7 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 @@ -27,7 +27,7 @@ * Represents a vSphere volume resource. */ @ApiModel(description = "Represents a vSphere volume resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 9f08172185..ddecf36718 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 @@ -27,7 +27,7 @@ * Event represents a single event to a watched resource. */ @ApiModel(description = "Event represents a single event to a watched resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4d3d6d6ac8..8fbfe52d7c 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 @@ -30,7 +30,7 @@ * WebhookConversion describes how to call a conversion webhook */ @ApiModel(description = "WebhookConversion describes how to call a conversion webhook") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 060592af95..39a53e0c39 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 @@ -28,7 +28,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)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ce07028a2b..cca59347bf 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 @@ -27,7 +27,7 @@ * WindowsSecurityContextOptions contain Windows-specific options and credentials. */ @ApiModel(description = "WindowsSecurityContextOptions contain Windows-specific options and credentials.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 1080a508ee..714e9d616b 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 @@ -27,7 +27,7 @@ * ApplyConfiguration defines the desired configuration values of an object. */ @ApiModel(description = "ApplyConfiguration defines the desired configuration values of an object.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f5a87f5041..def9f470f6 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 9ba53654a6..865ae9c106 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 @@ -31,7 +31,7 @@ * ClusterTrustBundleList is a collection of ClusterTrustBundle objects */ @ApiModel(description = "ClusterTrustBundleList is a collection of ClusterTrustBundle objects") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 563954289d..8fc5980ae3 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 @@ -27,7 +27,7 @@ * ClusterTrustBundleSpec contains the signer and trust anchors. */ @ApiModel(description = "ClusterTrustBundleSpec contains the signer and trust anchors.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8498536d62..72053af81e 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 @@ -27,7 +27,7 @@ * The names of the group, the version, and the resource. */ @ApiModel(description = "The names of the group, the version, and the resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 799da6e3c5..c18c11fd73 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 @@ -27,7 +27,7 @@ * JSONPatch defines a JSON Patch. */ @ApiModel(description = "JSONPatch defines a JSON Patch.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d0c5de9d22..ac48781202 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 @@ -26,7 +26,7 @@ /** * V1alpha1MatchCondition */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7b73ec152c..20ca3f77cf 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 @@ -31,7 +31,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)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d4bf44d498..9612daa46a 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 @@ -28,7 +28,7 @@ * Describes the state of a migration at a certain point. */ @ApiModel(description = "Describes the state of a migration at a certain point.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b11cbd2d17..d85a94faa5 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ecd839da8d..20fb4618f3 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 43102998e0..5d97984c98 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 @@ -31,7 +31,7 @@ * MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 eb7ff8faaa..87e9e427ed 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 @@ -29,7 +29,7 @@ * MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c0848e24fc..f093a53781 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 @@ -31,7 +31,7 @@ * MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. */ @ApiModel(description = "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7cb49556d5..3066f839e1 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 @@ -34,7 +34,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 1493428578..a55266f3bf 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 cbfc96c7a5..f1898fb215 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 @@ -29,7 +29,7 @@ * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ @ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a7555fc16d..119d8667ea 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 @@ -27,7 +27,7 @@ * ParamKind is a tuple of Group Kind and Version. */ @ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 82c610da0b..fbe6f07f45 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 72% 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 ed1ca20ee1..94bf17faf6 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 @@ -20,18 +20,18 @@ 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; /** - * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1alpha1PodCertificateRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) private String apiVersion; @@ -46,14 +46,14 @@ public class V1beta1ValidatingAdmissionPolicy implements io.kubernetes.client.co public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - private V1beta1ValidatingAdmissionPolicySpec spec; + private V1alpha1PodCertificateRequestSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - private V1beta1ValidatingAdmissionPolicyStatus status; + private V1alpha1PodCertificateRequestStatus status; - public V1beta1ValidatingAdmissionPolicy apiVersion(String apiVersion) { + public V1alpha1PodCertificateRequest apiVersion(String apiVersion) { this.apiVersion = apiVersion; return this; @@ -76,7 +76,7 @@ public void setApiVersion(String apiVersion) { } - public V1beta1ValidatingAdmissionPolicy kind(String kind) { + public V1alpha1PodCertificateRequest kind(String kind) { this.kind = kind; return this; @@ -99,7 +99,7 @@ public void setKind(String kind) { } - public V1beta1ValidatingAdmissionPolicy metadata(V1ObjectMeta metadata) { + public V1alpha1PodCertificateRequest metadata(V1ObjectMeta metadata) { this.metadata = metadata; return this; @@ -122,7 +122,7 @@ public void setMetadata(V1ObjectMeta metadata) { } - public V1beta1ValidatingAdmissionPolicy spec(V1beta1ValidatingAdmissionPolicySpec spec) { + public V1alpha1PodCertificateRequest spec(V1alpha1PodCertificateRequestSpec spec) { this.spec = spec; return this; @@ -132,20 +132,19 @@ public V1beta1ValidatingAdmissionPolicy spec(V1beta1ValidatingAdmissionPolicySpe * Get spec * @return spec **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(required = true, value = "") - public V1beta1ValidatingAdmissionPolicySpec getSpec() { + public V1alpha1PodCertificateRequestSpec getSpec() { return spec; } - public void setSpec(V1beta1ValidatingAdmissionPolicySpec spec) { + public void setSpec(V1alpha1PodCertificateRequestSpec spec) { this.spec = spec; } - public V1beta1ValidatingAdmissionPolicy status(V1beta1ValidatingAdmissionPolicyStatus status) { + public V1alpha1PodCertificateRequest status(V1alpha1PodCertificateRequestStatus status) { this.status = status; return this; @@ -158,12 +157,12 @@ public V1beta1ValidatingAdmissionPolicy status(V1beta1ValidatingAdmissionPolicyS @javax.annotation.Nullable @ApiModelProperty(value = "") - public V1beta1ValidatingAdmissionPolicyStatus getStatus() { + public V1alpha1PodCertificateRequestStatus getStatus() { return status; } - public void setStatus(V1beta1ValidatingAdmissionPolicyStatus status) { + public void setStatus(V1alpha1PodCertificateRequestStatus status) { this.status = status; } @@ -176,12 +175,12 @@ public boolean equals(java.lang.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 @@ -193,7 +192,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"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestList.java new file mode 100644 index 0000000000..a2356e3f62 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestList.java @@ -0,0 +1,193 @@ +/* +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 java.util.Arrays; +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.V1alpha1PodCertificateRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * PodCertificateRequestList is a collection of PodCertificateRequest objects + */ +@ApiModel(description = "PodCertificateRequestList is a collection of PodCertificateRequest objects") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1alpha1PodCertificateRequestList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; + + + public V1alpha1PodCertificateRequestList apiVersion(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 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") + + public String getApiVersion() { + return apiVersion; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1PodCertificateRequestList items(List items) { + + this.items = items; + return this; + } + + public V1alpha1PodCertificateRequestList addItemsItem(V1alpha1PodCertificateRequest itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * items is a collection of PodCertificateRequest objects + * @return items + **/ + @ApiModelProperty(required = true, value = "items is a collection of PodCertificateRequest objects") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1alpha1PodCertificateRequestList kind(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 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + + public String getKind() { + return kind; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha1PodCertificateRequestList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + 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 + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + 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"); + 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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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..a294e70ebf --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpec.java @@ -0,0 +1,350 @@ +/* +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 java.util.Arrays; +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; + +/** + * PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation. + */ +@ApiModel(description = "PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1alpha1PodCertificateRequestSpec { + public static final String SERIALIZED_NAME_MAX_EXPIRATION_SECONDS = "maxExpirationSeconds"; + @SerializedName(SERIALIZED_NAME_MAX_EXPIRATION_SECONDS) + private Integer maxExpirationSeconds; + + public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; + @SerializedName(SERIALIZED_NAME_NODE_NAME) + private String nodeName; + + public static final String SERIALIZED_NAME_NODE_U_I_D = "nodeUID"; + @SerializedName(SERIALIZED_NAME_NODE_U_I_D) + private String nodeUID; + + public static final String SERIALIZED_NAME_PKIX_PUBLIC_KEY = "pkixPublicKey"; + @SerializedName(SERIALIZED_NAME_PKIX_PUBLIC_KEY) + private byte[] pkixPublicKey; + + public static final String SERIALIZED_NAME_POD_NAME = "podName"; + @SerializedName(SERIALIZED_NAME_POD_NAME) + private String podName; + + public static final String SERIALIZED_NAME_POD_U_I_D = "podUID"; + @SerializedName(SERIALIZED_NAME_POD_U_I_D) + private String podUID; + + public static final String SERIALIZED_NAME_PROOF_OF_POSSESSION = "proofOfPossession"; + @SerializedName(SERIALIZED_NAME_PROOF_OF_POSSESSION) + private byte[] proofOfPossession; + + public static final String SERIALIZED_NAME_SERVICE_ACCOUNT_NAME = "serviceAccountName"; + @SerializedName(SERIALIZED_NAME_SERVICE_ACCOUNT_NAME) + private String serviceAccountName; + + public static final String SERIALIZED_NAME_SERVICE_ACCOUNT_U_I_D = "serviceAccountUID"; + @SerializedName(SERIALIZED_NAME_SERVICE_ACCOUNT_U_I_D) + private String serviceAccountUID; + + public static final String SERIALIZED_NAME_SIGNER_NAME = "signerName"; + @SerializedName(SERIALIZED_NAME_SIGNER_NAME) + private String signerName; + + + public V1alpha1PodCertificateRequestSpec maxExpirationSeconds(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 + **/ + @javax.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(Integer maxExpirationSeconds) { + this.maxExpirationSeconds = maxExpirationSeconds; + } + + + public V1alpha1PodCertificateRequestSpec nodeName(String nodeName) { + + this.nodeName = nodeName; + return this; + } + + /** + * nodeName is the name of the node the pod is assigned to. + * @return nodeName + **/ + @ApiModelProperty(required = true, value = "nodeName is the name of the node the pod is assigned to.") + + public String getNodeName() { + return nodeName; + } + + + public void setNodeName(String nodeName) { + this.nodeName = nodeName; + } + + + public V1alpha1PodCertificateRequestSpec nodeUID(String nodeUID) { + + this.nodeUID = nodeUID; + return this; + } + + /** + * nodeUID is the UID of the node the pod is assigned to. + * @return nodeUID + **/ + @ApiModelProperty(required = true, value = "nodeUID is the UID of the node the pod is assigned to.") + + public String getNodeUID() { + return nodeUID; + } + + + public void setNodeUID(String nodeUID) { + this.nodeUID = nodeUID; + } + + + public V1alpha1PodCertificateRequestSpec pkixPublicKey(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 + **/ + @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(byte[] pkixPublicKey) { + this.pkixPublicKey = pkixPublicKey; + } + + + public V1alpha1PodCertificateRequestSpec podName(String podName) { + + this.podName = podName; + return this; + } + + /** + * podName is the name of the pod into which the certificate will be mounted. + * @return podName + **/ + @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(String podName) { + this.podName = podName; + } + + + public V1alpha1PodCertificateRequestSpec podUID(String podUID) { + + this.podUID = podUID; + return this; + } + + /** + * podUID is the UID of the pod into which the certificate will be mounted. + * @return podUID + **/ + @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(String podUID) { + this.podUID = podUID; + } + + + public V1alpha1PodCertificateRequestSpec proofOfPossession(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 + **/ + @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(byte[] proofOfPossession) { + this.proofOfPossession = proofOfPossession; + } + + + public V1alpha1PodCertificateRequestSpec serviceAccountName(String serviceAccountName) { + + this.serviceAccountName = serviceAccountName; + return this; + } + + /** + * serviceAccountName is the name of the service account the pod is running as. + * @return serviceAccountName + **/ + @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(String serviceAccountName) { + this.serviceAccountName = serviceAccountName; + } + + + public V1alpha1PodCertificateRequestSpec serviceAccountUID(String serviceAccountUID) { + + this.serviceAccountUID = serviceAccountUID; + return this; + } + + /** + * serviceAccountUID is the UID of the service account the pod is running as. + * @return serviceAccountUID + **/ + @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(String serviceAccountUID) { + this.serviceAccountUID = serviceAccountUID; + } + + + public V1alpha1PodCertificateRequestSpec signerName(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 + **/ + @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(String signerName) { + this.signerName = signerName; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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..7d457b9356 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatus.java @@ -0,0 +1,226 @@ +/* +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 java.util.Arrays; +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.List; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1alpha1PodCertificateRequestStatus { + public static final String SERIALIZED_NAME_BEGIN_REFRESH_AT = "beginRefreshAt"; + @SerializedName(SERIALIZED_NAME_BEGIN_REFRESH_AT) + private OffsetDateTime beginRefreshAt; + + public static final String SERIALIZED_NAME_CERTIFICATE_CHAIN = "certificateChain"; + @SerializedName(SERIALIZED_NAME_CERTIFICATE_CHAIN) + private String certificateChain; + + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) + private List conditions = null; + + public static final String SERIALIZED_NAME_NOT_AFTER = "notAfter"; + @SerializedName(SERIALIZED_NAME_NOT_AFTER) + private OffsetDateTime notAfter; + + public static final String SERIALIZED_NAME_NOT_BEFORE = "notBefore"; + @SerializedName(SERIALIZED_NAME_NOT_BEFORE) + private OffsetDateTime notBefore; + + + public V1alpha1PodCertificateRequestStatus beginRefreshAt(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 + **/ + @javax.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(OffsetDateTime beginRefreshAt) { + this.beginRefreshAt = beginRefreshAt; + } + + + public V1alpha1PodCertificateRequestStatus certificateChain(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 + **/ + @javax.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(String certificateChain) { + this.certificateChain = certificateChain; + } + + + public V1alpha1PodCertificateRequestStatus conditions(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 + **/ + @javax.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(List conditions) { + this.conditions = conditions; + } + + + public V1alpha1PodCertificateRequestStatus notAfter(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 + **/ + @javax.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(OffsetDateTime notAfter) { + this.notAfter = notAfter; + } + + + public V1alpha1PodCertificateRequestStatus notBefore(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 + **/ + @javax.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(OffsetDateTime notBefore) { + this.notBefore = notBefore; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 e2fb13d70f..9b0d988f0c 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4ff0e3c197..621ec878bd 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 @@ -29,7 +29,7 @@ * Storage version of a specific resource. */ @ApiModel(description = "Storage version of a specific resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f71d226583..01308dc901 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 @@ -28,7 +28,7 @@ * Describes the state of the storageVersion at a certain point. */ @ApiModel(description = "Describes the state of the storageVersion at a certain point.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 be4911e63c..12940fabbb 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 @@ -31,7 +31,7 @@ * A list of StorageVersions. */ @ApiModel(description = "A list of StorageVersions.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7dc89a5709..11cba244cd 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 672528864b..35dc5a72c9 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 @@ -31,7 +31,7 @@ * StorageVersionMigrationList is a collection of storage version migrations. */ @ApiModel(description = "StorageVersionMigrationList is a collection of storage version migrations.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8fb82ae6f0..df4b271e01 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 @@ -28,7 +28,7 @@ * Spec of the storage version migration. */ @ApiModel(description = "Spec of the storage version migration.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 33c428eb4c..7f8b645964 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 @@ -30,7 +30,7 @@ * Status of the storage version migration. */ @ApiModel(description = "Status of the storage version migration.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 9e15b1e941..27c96e3578 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 defc2363ba..229e6addcd 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 bd953e4476..3753c29a20 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 1682f84e0a..2f4a4bc1f3 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 @@ -31,7 +31,7 @@ * VolumeAttributesClassList is a collection of VolumeAttributesClass objects. */ @ApiModel(description = "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 501387172a..80b335a170 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 365e6922f8..d4aca4cf4b 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 @@ -31,7 +31,7 @@ * LeaseCandidateList is a list of Lease objects. */ @ApiModel(description = "LeaseCandidateList is a list of Lease objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8914ab85b6..fcd4c80482 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 @@ -28,7 +28,7 @@ * LeaseCandidateSpec is a specification of a Lease. */ @ApiModel(description = "LeaseCandidateSpec is a specification of a Lease.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 fde51be9cf..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3BasicDevice.java +++ /dev/null @@ -1,313 +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 java.util.Arrays; -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.HashMap; -import java.util.List; -import java.util.Map; - -/** - * BasicDevice defines one device instance. - */ -@ApiModel(description = "BasicDevice defines one device instance.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3BasicDevice { - public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; - @SerializedName(SERIALIZED_NAME_ALL_NODES) - private Boolean allNodes; - - public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; - @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private Map attributes = null; - - public static final String SERIALIZED_NAME_CAPACITY = "capacity"; - @SerializedName(SERIALIZED_NAME_CAPACITY) - private Map capacity = null; - - public static final String SERIALIZED_NAME_CONSUMES_COUNTERS = "consumesCounters"; - @SerializedName(SERIALIZED_NAME_CONSUMES_COUNTERS) - private List consumesCounters = null; - - public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; - @SerializedName(SERIALIZED_NAME_NODE_NAME) - private String nodeName; - - public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; - @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) - private V1NodeSelector nodeSelector; - - public static final String SERIALIZED_NAME_TAINTS = "taints"; - @SerializedName(SERIALIZED_NAME_TAINTS) - private List taints = null; - - - public V1alpha3BasicDevice allNodes(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 - **/ - @javax.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(Boolean allNodes) { - this.allNodes = allNodes; - } - - - public V1alpha3BasicDevice attributes(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 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32.") - - public Map getAttributes() { - return attributes; - } - - - public void setAttributes(Map attributes) { - this.attributes = attributes; - } - - - public V1alpha3BasicDevice capacity(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 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32.") - - public Map getCapacity() { - return capacity; - } - - - public void setCapacity(Map capacity) { - this.capacity = capacity; - } - - - public V1alpha3BasicDevice consumesCounters(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 - **/ - @javax.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(List consumesCounters) { - this.consumesCounters = consumesCounters; - } - - - public V1alpha3BasicDevice nodeName(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 - **/ - @javax.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(String nodeName) { - this.nodeName = nodeName; - } - - - public V1alpha3BasicDevice nodeSelector(V1NodeSelector nodeSelector) { - - this.nodeSelector = nodeSelector; - return this; - } - - /** - * Get nodeSelector - * @return nodeSelector - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1NodeSelector getNodeSelector() { - return nodeSelector; - } - - - public void setNodeSelector(V1NodeSelector nodeSelector) { - this.nodeSelector = nodeSelector; - } - - - public V1alpha3BasicDevice taints(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 - **/ - @javax.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(List taints) { - this.taints = taints; - } - - - @Override - public boolean equals(java.lang.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(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 7c139ac040..f337530d03 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 @@ -27,7 +27,7 @@ * CELDeviceSelector contains a CEL expression for selecting a device. */ @ApiModel(description = "CELDeviceSelector contains a CEL expression for selecting a device.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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/V1alpha3Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java deleted file mode 100644 index 9015f508b2..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3Device.java +++ /dev/null @@ -1,127 +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 java.util.Arrays; -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.V1alpha3BasicDevice; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -/** - * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3Device { - public static final String SERIALIZED_NAME_BASIC = "basic"; - @SerializedName(SERIALIZED_NAME_BASIC) - private V1alpha3BasicDevice basic; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - - public V1alpha3Device basic(V1alpha3BasicDevice basic) { - - this.basic = basic; - return this; - } - - /** - * Get basic - * @return basic - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1alpha3BasicDevice getBasic() { - return basic; - } - - - public void setBasic(V1alpha3BasicDevice basic) { - this.basic = basic; - } - - - public V1alpha3Device name(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 - **/ - @ApiModelProperty(required = true, value = "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - 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); - } - - @Override - public int hashCode() { - return Objects.hash(basic, name); - } - - - @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("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java deleted file mode 100644 index b9676ff162..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequest.java +++ /dev/null @@ -1,329 +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 java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha3DeviceSelector; -import io.kubernetes.client.openapi.models.V1alpha3DeviceSubRequest; -import io.kubernetes.client.openapi.models.V1alpha3DeviceToleration; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3DeviceRequest { - public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; - @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) - private Boolean adminAccess; - - public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; - @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) - private String allocationMode; - - public static final String SERIALIZED_NAME_COUNT = "count"; - @SerializedName(SERIALIZED_NAME_COUNT) - private Long count; - - public static final String SERIALIZED_NAME_DEVICE_CLASS_NAME = "deviceClassName"; - @SerializedName(SERIALIZED_NAME_DEVICE_CLASS_NAME) - private String deviceClassName; - - public static final String SERIALIZED_NAME_FIRST_AVAILABLE = "firstAvailable"; - @SerializedName(SERIALIZED_NAME_FIRST_AVAILABLE) - private List firstAvailable = null; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_SELECTORS = "selectors"; - @SerializedName(SERIALIZED_NAME_SELECTORS) - private List selectors = null; - - public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; - @SerializedName(SERIALIZED_NAME_TOLERATIONS) - private List tolerations = null; - - - public V1alpha3DeviceRequest adminAccess(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. - * @return adminAccess - **/ - @javax.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.") - - public Boolean getAdminAccess() { - return adminAccess; - } - - - public void setAdminAccess(Boolean adminAccess) { - this.adminAccess = adminAccess; - } - - - public V1alpha3DeviceRequest allocationMode(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. - * @return allocationMode - **/ - @javax.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.") - - public String getAllocationMode() { - return allocationMode; - } - - - public void setAllocationMode(String allocationMode) { - this.allocationMode = allocationMode; - } - - - public V1alpha3DeviceRequest count(Long count) { - - this.count = count; - return this; - } - - /** - * Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. - * @return count - **/ - @javax.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; - } - - - public void setCount(Long count) { - this.count = count; - } - - - public V1alpha3DeviceRequest deviceClassName(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 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.") - - public String getDeviceClassName() { - return deviceClassName; - } - - - public void setDeviceClassName(String deviceClassName) { - this.deviceClassName = deviceClassName; - } - - - public V1alpha3DeviceRequest firstAvailable(List firstAvailable) { - - this.firstAvailable = firstAvailable; - return this; - } - - public V1alpha3DeviceRequest addFirstAvailableItem(V1alpha3DeviceSubRequest firstAvailableItem) { - if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList<>(); - } - this.firstAvailable.add(firstAvailableItem); - return this; - } - - /** - * FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. - * @return firstAvailable - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.") - - public List getFirstAvailable() { - return firstAvailable; - } - - - public void setFirstAvailable(List firstAvailable) { - this.firstAvailable = firstAvailable; - } - - - public V1alpha3DeviceRequest name(String name) { - - this.name = name; - return this; - } - - /** - * Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. Must be a DNS label. - * @return name - **/ - @ApiModelProperty(required = true, value = "Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. Must be a DNS label.") - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public V1alpha3DeviceRequest selectors(List selectors) { - - this.selectors = selectors; - return this; - } - - public V1alpha3DeviceRequest addSelectorsItem(V1alpha3DeviceSelector selectorsItem) { - if (this.selectors == null) { - this.selectors = new ArrayList<>(); - } - this.selectors.add(selectorsItem); - return this; - } - - /** - * Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. - * @return selectors - **/ - @javax.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() { - return selectors; - } - - - public void setSelectors(List selectors) { - this.selectors = selectors; - } - - - public V1alpha3DeviceRequest tolerations(List tolerations) { - - this.tolerations = tolerations; - return this; - } - - public V1alpha3DeviceRequest addTolerationsItem(V1alpha3DeviceToleration tolerationsItem) { - if (this.tolerations == null) { - this.tolerations = new ArrayList<>(); - } - this.tolerations.add(tolerationsItem); - return this; - } - - /** - * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate. - * @return tolerations - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") - - public List getTolerations() { - return tolerations; - } - - - public void setTolerations(List tolerations) { - this.tolerations = tolerations; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - 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); - } - - @Override - public int hashCode() { - return Objects.hash(adminAccess, allocationMode, count, deviceClassName, firstAvailable, name, selectors, tolerations); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceRequest {\n"); - sb.append(" adminAccess: ").append(toIndentedString(adminAccess)).append("\n"); - sb.append(" allocationMode: ").append(toIndentedString(allocationMode)).append("\n"); - sb.append(" count: ").append(toIndentedString(count)).append("\n"); - sb.append(" deviceClassName: ").append(toIndentedString(deviceClassName)).append("\n"); - sb.append(" firstAvailable: ").append(toIndentedString(firstAvailable)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" selectors: ").append(toIndentedString(selectors)).append("\n"); - sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java deleted file mode 100644 index 60b53348b5..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceRequestAllocationResult.java +++ /dev/null @@ -1,250 +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 java.util.Arrays; -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.V1alpha3DeviceToleration; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * DeviceRequestAllocationResult contains the allocation result for one request. - */ -@ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1alpha3DeviceRequestAllocationResult { - public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; - @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) - private Boolean adminAccess; - - public static final String SERIALIZED_NAME_DEVICE = "device"; - @SerializedName(SERIALIZED_NAME_DEVICE) - private String device; - - public static final String SERIALIZED_NAME_DRIVER = "driver"; - @SerializedName(SERIALIZED_NAME_DRIVER) - private String driver; - - public static final String SERIALIZED_NAME_POOL = "pool"; - @SerializedName(SERIALIZED_NAME_POOL) - private String pool; - - public static final String SERIALIZED_NAME_REQUEST = "request"; - @SerializedName(SERIALIZED_NAME_REQUEST) - private String request; - - public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; - @SerializedName(SERIALIZED_NAME_TOLERATIONS) - private List tolerations = null; - - - public V1alpha3DeviceRequestAllocationResult adminAccess(Boolean adminAccess) { - - this.adminAccess = adminAccess; - return this; - } - - /** - * AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. - * @return adminAccess - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.") - - public Boolean getAdminAccess() { - return adminAccess; - } - - - public void setAdminAccess(Boolean adminAccess) { - this.adminAccess = adminAccess; - } - - - public V1alpha3DeviceRequestAllocationResult device(String device) { - - this.device = device; - return this; - } - - /** - * Device references one device instance via its name in the driver's resource pool. It must be a DNS label. - * @return device - **/ - @ApiModelProperty(required = true, value = "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.") - - public String getDevice() { - return device; - } - - - public void setDevice(String device) { - this.device = device; - } - - - public V1alpha3DeviceRequestAllocationResult driver(String driver) { - - this.driver = driver; - return this; - } - - /** - * Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. - * @return driver - **/ - @ApiModelProperty(required = true, value = "Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.") - - public String getDriver() { - return driver; - } - - - public void setDriver(String driver) { - this.driver = driver; - } - - - public V1alpha3DeviceRequestAllocationResult pool(String pool) { - - this.pool = pool; - return this; - } - - /** - * This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. - * @return pool - **/ - @ApiModelProperty(required = true, value = "This name together with the driver name and the device name field identify which device was allocated (`//`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.") - - public String getPool() { - return pool; - } - - - public void setPool(String pool) { - this.pool = pool; - } - - - public V1alpha3DeviceRequestAllocationResult request(String request) { - - this.request = request; - return this; - } - - /** - * Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. - * @return request - **/ - @ApiModelProperty(required = true, value = "Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
/. Multiple devices may have been allocated per request.") - - public String getRequest() { - return request; - } - - - public void setRequest(String request) { - this.request = request; - } - - - public V1alpha3DeviceRequestAllocationResult tolerations(List tolerations) { - - this.tolerations = tolerations; - return this; - } - - public V1alpha3DeviceRequestAllocationResult addTolerationsItem(V1alpha3DeviceToleration tolerationsItem) { - if (this.tolerations == null) { - this.tolerations = new ArrayList<>(); - } - this.tolerations.add(tolerationsItem); - return this; - } - - /** - * A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. - * @return tolerations - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") - - public List getTolerations() { - return tolerations; - } - - - public void setTolerations(List tolerations) { - this.tolerations = tolerations; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - 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); - } - - @Override - public int hashCode() { - return Objects.hash(adminAccess, device, driver, pool, request, tolerations); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha3DeviceRequestAllocationResult {\n"); - sb.append(" adminAccess: ").append(toIndentedString(adminAccess)).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(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 e1a9b2eb9e..6481d96973 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 @@ -28,7 +28,7 @@ * DeviceSelector must have exactly one field set. */ @ApiModel(description = "DeviceSelector must have exactly one field set.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 5553694514..24cf8cc173 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 00d8fac62d..53b3bcb12f 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 fd8fbb31f9..6e47f7a875 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 @@ -31,7 +31,7 @@ * DeviceTaintRuleList is a collection of DeviceTaintRules. */ @ApiModel(description = "DeviceTaintRuleList is a collection of DeviceTaintRules.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 6967a1056c..060932124f 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 @@ -29,7 +29,7 @@ * DeviceTaintRuleSpec specifies the selector and one taint. */ @ApiModel(description = "DeviceTaintRuleSpec specifies the selector and one taint.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 33b6b9b12a..f7f3b18b38 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b7b9fb62b3..d8693b156c 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 @@ -28,10 +28,10 @@ import java.util.List; /** - * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta1AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -57,6 +57,10 @@ public class V1beta1AllocatedDeviceStatus { @SerializedName(SERIALIZED_NAME_POOL) private String pool; + public static final String SERIALIZED_NAME_SHARE_I_D = "shareID"; + @SerializedName(SERIALIZED_NAME_SHARE_I_D) + private String shareID; + public V1beta1AllocatedDeviceStatus conditions(List conditions) { @@ -201,6 +205,29 @@ public void setPool(String pool) { } + public V1beta1AllocatedDeviceStatus shareID(String shareID) { + + this.shareID = shareID; + return this; + } + + /** + * ShareID uniquely identifies an individual allocation share of the device. + * @return shareID + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "ShareID uniquely identifies an individual allocation share of the device.") + + public String getShareID() { + return shareID; + } + + + public void setShareID(String shareID) { + this.shareID = shareID; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -215,12 +242,13 @@ public boolean equals(java.lang.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); } @@ -234,6 +262,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(); } 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 fae01d8f17..f17817e363 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 @@ -24,13 +24,18 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.OffsetDateTime; /** * AllocationResult contains attributes of an allocated resource. */ @ApiModel(description = "AllocationResult contains attributes of an allocated resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta1AllocationResult { + public static final String SERIALIZED_NAME_ALLOCATION_TIMESTAMP = "allocationTimestamp"; + @SerializedName(SERIALIZED_NAME_ALLOCATION_TIMESTAMP) + private OffsetDateTime allocationTimestamp; + public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) private V1beta1DeviceAllocationResult devices; @@ -40,6 +45,29 @@ public class V1beta1AllocationResult { private V1NodeSelector nodeSelector; + public V1beta1AllocationResult allocationTimestamp(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 + **/ + @javax.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(OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + } + + public V1beta1AllocationResult devices(V1beta1DeviceAllocationResult devices) { this.devices = devices; @@ -95,13 +123,14 @@ public boolean equals(java.lang.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); } @@ -109,6 +138,7 @@ public int hashCode() { 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("}"); 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..85287aeeb2 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java @@ -0,0 +1,98 @@ +/* +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 java.util.Arrays; +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; + +/** + * ApplyConfiguration defines the desired configuration values of an object. + */ +@ApiModel(description = "ApplyConfiguration defines the desired configuration values of an object.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1beta1ApplyConfiguration { + public static final String SERIALIZED_NAME_EXPRESSION = "expression"; + @SerializedName(SERIALIZED_NAME_EXPRESSION) + private String expression; + + + public V1beta1ApplyConfiguration expression(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 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field: Object{ spec: Object.spec{ serviceAccountName: \"example\" } } Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration. CEL expressions have access to the object types needed to create apply configurations: - 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.") + + public String getExpression() { + return expression; + } + + + public void setExpression(String expression) { + this.expression = expression; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 bb81eb824f..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotation.java +++ /dev/null @@ -1,125 +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 java.util.Arrays; -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; - -/** - * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1beta1AuditAnnotation { - public static final String SERIALIZED_NAME_KEY = "key"; - @SerializedName(SERIALIZED_NAME_KEY) - private String key; - - public static final String SERIALIZED_NAME_VALUE_EXPRESSION = "valueExpression"; - @SerializedName(SERIALIZED_NAME_VALUE_EXPRESSION) - private String valueExpression; - - - public V1beta1AuditAnnotation key(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 - **/ - @ApiModelProperty(required = true, value = "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required.") - - public String getKey() { - return key; - } - - - public void setKey(String key) { - this.key = key; - } - - - public V1beta1AuditAnnotation valueExpression(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 - **/ - @ApiModelProperty(required = true, value = "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required.") - - public String getValueExpression() { - return valueExpression; - } - - - public void setValueExpression(String valueExpression) { - this.valueExpression = valueExpression; - } - - - @Override - public boolean equals(java.lang.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(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 05bdf7795c..5f92d7af63 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 @@ -36,16 +36,32 @@ * BasicDevice defines one device instance. */ @ApiModel(description = "BasicDevice defines one device instance.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta1BasicDevice { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) private Boolean allNodes; + public static final String SERIALIZED_NAME_ALLOW_MULTIPLE_ALLOCATIONS = "allowMultipleAllocations"; + @SerializedName(SERIALIZED_NAME_ALLOW_MULTIPLE_ALLOCATIONS) + private Boolean allowMultipleAllocations; + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) private Map attributes = null; + public static final String SERIALIZED_NAME_BINDING_CONDITIONS = "bindingConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_CONDITIONS) + private List bindingConditions = null; + + public static final String SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS = "bindingFailureConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS) + private List bindingFailureConditions = null; + + public static final String SERIALIZED_NAME_BINDS_TO_NODE = "bindsToNode"; + @SerializedName(SERIALIZED_NAME_BINDS_TO_NODE) + private Boolean bindsToNode; + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; @SerializedName(SERIALIZED_NAME_CAPACITY) private Map capacity = null; @@ -90,6 +106,29 @@ public void setAllNodes(Boolean allNodes) { } + public V1beta1BasicDevice allowMultipleAllocations(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 + **/ + @javax.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(Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + } + + public V1beta1BasicDevice attributes(Map attributes) { this.attributes = attributes; @@ -121,6 +160,91 @@ public void setAttributes(Map attributes) { } + public V1beta1BasicDevice bindingConditions(List 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 + **/ + @javax.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(List bindingConditions) { + this.bindingConditions = bindingConditions; + } + + + public V1beta1BasicDevice bindingFailureConditions(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 + **/ + @javax.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(List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + } + + + public V1beta1BasicDevice bindsToNode(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 + **/ + @javax.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(Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + } + + public V1beta1BasicDevice capacity(Map capacity) { this.capacity = capacity; @@ -270,7 +394,11 @@ public boolean equals(java.lang.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) && @@ -280,7 +408,7 @@ public boolean equals(java.lang.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); } @@ -289,7 +417,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"); 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 c58dce0e95..286b7100e3 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 @@ -27,7 +27,7 @@ * CELDeviceSelector contains a CEL expression for selecting a device. */ @ApiModel(description = "CELDeviceSelector contains a CEL expression for selecting a device.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta1CELDeviceSelector { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -41,10 +41,10 @@ public V1beta1CELDeviceSelector expression(String expression) { } /** - * 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 **/ - @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..8aafcb449d --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java @@ -0,0 +1,168 @@ +/* +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 java.util.Arrays; +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.List; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1beta1CapacityRequestPolicy { + public static final String SERIALIZED_NAME_DEFAULT = "default"; + @SerializedName(SERIALIZED_NAME_DEFAULT) + private Quantity _default; + + public static final String SERIALIZED_NAME_VALID_RANGE = "validRange"; + @SerializedName(SERIALIZED_NAME_VALID_RANGE) + private V1beta1CapacityRequestPolicyRange validRange; + + public static final String SERIALIZED_NAME_VALID_VALUES = "validValues"; + @SerializedName(SERIALIZED_NAME_VALID_VALUES) + private List validValues = null; + + + public V1beta1CapacityRequestPolicy _default(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 + **/ + @javax.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(Quantity _default) { + this._default = _default; + } + + + public V1beta1CapacityRequestPolicy validRange(V1beta1CapacityRequestPolicyRange validRange) { + + this.validRange = validRange; + return this; + } + + /** + * Get validRange + * @return validRange + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1beta1CapacityRequestPolicyRange getValidRange() { + return validRange; + } + + + public void setValidRange(V1beta1CapacityRequestPolicyRange validRange) { + this.validRange = validRange; + } + + + public V1beta1CapacityRequestPolicy validValues(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 + **/ + @javax.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(List validValues) { + this.validValues = validValues; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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..f692db96eb --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java @@ -0,0 +1,156 @@ +/* +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 java.util.Arrays; +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; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1beta1CapacityRequestPolicyRange { + public static final String SERIALIZED_NAME_MAX = "max"; + @SerializedName(SERIALIZED_NAME_MAX) + private Quantity max; + + public static final String SERIALIZED_NAME_MIN = "min"; + @SerializedName(SERIALIZED_NAME_MIN) + private Quantity min; + + public static final String SERIALIZED_NAME_STEP = "step"; + @SerializedName(SERIALIZED_NAME_STEP) + private Quantity step; + + + public V1beta1CapacityRequestPolicyRange max(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 + **/ + @javax.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(Quantity max) { + this.max = max; + } + + + public V1beta1CapacityRequestPolicyRange min(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 + **/ + @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(Quantity min) { + this.min = min; + } + + + public V1beta1CapacityRequestPolicyRange step(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 + **/ + @javax.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(Quantity step) { + this.step = step; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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..ae2561aaf9 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java @@ -0,0 +1,110 @@ +/* +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 java.util.Arrays; +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.HashMap; +import java.util.List; +import java.util.Map; + +/** + * CapacityRequirements defines the capacity requirements for a specific device request. + */ +@ApiModel(description = "CapacityRequirements defines the capacity requirements for a specific device request.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1beta1CapacityRequirements { + public static final String SERIALIZED_NAME_REQUESTS = "requests"; + @SerializedName(SERIALIZED_NAME_REQUESTS) + private Map requests = null; + + + public V1beta1CapacityRequirements requests(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 + **/ + @javax.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(Map requests) { + this.requests = requests; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 fedb2bd32f..5dae107c3d 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 78b3193ea3..273f9928a1 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 @@ -31,7 +31,7 @@ * ClusterTrustBundleList is a collection of ClusterTrustBundle objects */ @ApiModel(description = "ClusterTrustBundleList is a collection of ClusterTrustBundle objects") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d1e0748edf..cabf2f030b 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 @@ -27,7 +27,7 @@ * ClusterTrustBundleSpec contains the signer and trust anchors. */ @ApiModel(description = "ClusterTrustBundleSpec contains the signer and trust anchors.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8ced439817..fe68c6bc7b 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 @@ -28,7 +28,7 @@ * Counter describes a quantity associated with a device. */ @ApiModel(description = "Counter describes a quantity associated with a device.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 164b304e44..ece1baa182 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f5492b790e..287bee1e68 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e212d5d5bb..eec0c191e4 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 @@ -30,7 +30,7 @@ * DeviceAllocationConfiguration gets embedded in an AllocationResult. */ @ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c75e10fc37..b3cda513f4 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 @@ -31,7 +31,7 @@ * DeviceAllocationResult is the result of allocating devices. */ @ApiModel(description = "DeviceAllocationResult is the result of allocating devices.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7a401da1ea..8d48356ded 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 @@ -27,7 +27,7 @@ * DeviceAttribute must have exactly one field set. */ @ApiModel(description = "DeviceAttribute must have exactly one field set.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 dff6ebf72f..46b9d6d7cd 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 @@ -20,6 +20,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; @@ -28,13 +29,40 @@ * DeviceCapacity describes a quantity associated with a device. */ @ApiModel(description = "DeviceCapacity describes a quantity associated with a device.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta1DeviceCapacity { + public static final String SERIALIZED_NAME_REQUEST_POLICY = "requestPolicy"; + @SerializedName(SERIALIZED_NAME_REQUEST_POLICY) + private V1beta1CapacityRequestPolicy requestPolicy; + public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) private Quantity value; + public V1beta1DeviceCapacity requestPolicy(V1beta1CapacityRequestPolicy requestPolicy) { + + this.requestPolicy = requestPolicy; + return this; + } + + /** + * Get requestPolicy + * @return requestPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1beta1CapacityRequestPolicy getRequestPolicy() { + return requestPolicy; + } + + + public void setRequestPolicy(V1beta1CapacityRequestPolicy requestPolicy) { + this.requestPolicy = requestPolicy; + } + + public V1beta1DeviceCapacity value(Quantity value) { this.value = value; @@ -66,12 +94,13 @@ public boolean equals(java.lang.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); } @@ -79,6 +108,7 @@ public int hashCode() { 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(); 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 3d1ba709d0..b205ffe268 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 @@ -32,7 +32,7 @@ * DeviceClaim defines how to request devices with a ResourceClaim. */ @ApiModel(description = "DeviceClaim defines how to request devices with a ResourceClaim.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0f52069360..b3252d981a 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 @@ -30,7 +30,7 @@ * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. */ @ApiModel(description = "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c948f7e814..0b57b9031a 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 49008a85fa..e24c165b00 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 @@ -28,7 +28,7 @@ * DeviceClassConfiguration is used in DeviceClass. */ @ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0572d93b25..fe595a7abb 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 @@ -31,7 +31,7 @@ * DeviceClassList is a collection of classes. */ @ApiModel(description = "DeviceClassList is a collection of classes.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3463de60f1..45ea6a489b 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 @@ -31,12 +31,16 @@ * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta1DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) private List config = null; + public static final String SERIALIZED_NAME_EXTENDED_RESOURCE_NAME = "extendedResourceName"; + @SerializedName(SERIALIZED_NAME_EXTENDED_RESOURCE_NAME) + private String extendedResourceName; + public static final String SERIALIZED_NAME_SELECTORS = "selectors"; @SerializedName(SERIALIZED_NAME_SELECTORS) private List selectors = null; @@ -73,6 +77,29 @@ public void setConfig(List config) { } + public V1beta1DeviceClassSpec extendedResourceName(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 + **/ + @javax.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(String extendedResourceName) { + this.extendedResourceName = extendedResourceName; + } + + public V1beta1DeviceClassSpec selectors(List selectors) { this.selectors = selectors; @@ -114,12 +141,13 @@ public boolean equals(java.lang.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); } @@ -128,6 +156,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(); 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 c6051de38c..89cc2d50d4 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 @@ -29,8 +29,12 @@ * DeviceConstraint must have exactly one field set besides Requests. */ @ApiModel(description = "DeviceConstraint must have exactly one field set besides Requests.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta1DeviceConstraint { + public static final String SERIALIZED_NAME_DISTINCT_ATTRIBUTE = "distinctAttribute"; + @SerializedName(SERIALIZED_NAME_DISTINCT_ATTRIBUTE) + private String distinctAttribute; + public static final String SERIALIZED_NAME_MATCH_ATTRIBUTE = "matchAttribute"; @SerializedName(SERIALIZED_NAME_MATCH_ATTRIBUTE) private String matchAttribute; @@ -40,6 +44,29 @@ public class V1beta1DeviceConstraint { private List requests = null; + public V1beta1DeviceConstraint distinctAttribute(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 + **/ + @javax.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(String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + } + + public V1beta1DeviceConstraint matchAttribute(String matchAttribute) { this.matchAttribute = matchAttribute; @@ -103,13 +130,14 @@ public boolean equals(java.lang.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); } @@ -117,6 +145,7 @@ public int hashCode() { 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("}"); 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 0d4af9a232..1dfedd8d69 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 eaf16f1135..c63ddc863d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java @@ -19,6 +19,7 @@ import com.google.gson.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; @@ -32,7 +33,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta1DeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -42,6 +43,10 @@ public class V1beta1DeviceRequest { @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) private String allocationMode; + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + private V1beta1CapacityRequirements capacity; + public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) private Long count; @@ -113,6 +118,29 @@ public void setAllocationMode(String allocationMode) { } + public V1beta1DeviceRequest capacity(V1beta1CapacityRequirements capacity) { + + this.capacity = capacity; + return this; + } + + /** + * Get capacity + * @return capacity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1beta1CapacityRequirements getCapacity() { + return capacity; + } + + + public void setCapacity(V1beta1CapacityRequirements capacity) { + this.capacity = capacity; + } + + public V1beta1DeviceRequest count(Long count) { this.count = count; @@ -285,6 +313,7 @@ public boolean equals(java.lang.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) && @@ -295,7 +324,7 @@ public boolean equals(java.lang.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); } @@ -305,6 +334,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"); 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 1c27af46a7..06b641b552 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 @@ -19,23 +19,38 @@ 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.HashMap; import java.util.List; +import java.util.Map; /** * DeviceRequestAllocationResult contains the allocation result for one request. */ @ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta1DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) private Boolean adminAccess; + public static final String SERIALIZED_NAME_BINDING_CONDITIONS = "bindingConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_CONDITIONS) + private List bindingConditions = null; + + public static final String SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS = "bindingFailureConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS) + private List bindingFailureConditions = null; + + public static final String SERIALIZED_NAME_CONSUMED_CAPACITY = "consumedCapacity"; + @SerializedName(SERIALIZED_NAME_CONSUMED_CAPACITY) + private Map consumedCapacity = null; + public static final String SERIALIZED_NAME_DEVICE = "device"; @SerializedName(SERIALIZED_NAME_DEVICE) private String device; @@ -52,6 +67,10 @@ public class V1beta1DeviceRequestAllocationResult { @SerializedName(SERIALIZED_NAME_REQUEST) private String request; + public static final String SERIALIZED_NAME_SHARE_I_D = "shareID"; + @SerializedName(SERIALIZED_NAME_SHARE_I_D) + private String shareID; + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; @SerializedName(SERIALIZED_NAME_TOLERATIONS) private List tolerations = null; @@ -80,6 +99,99 @@ public void setAdminAccess(Boolean adminAccess) { } + public V1beta1DeviceRequestAllocationResult bindingConditions(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 + **/ + @javax.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(List bindingConditions) { + this.bindingConditions = bindingConditions; + } + + + public V1beta1DeviceRequestAllocationResult bindingFailureConditions(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 + **/ + @javax.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(List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + } + + + public V1beta1DeviceRequestAllocationResult consumedCapacity(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 + **/ + @javax.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(Map consumedCapacity) { + this.consumedCapacity = consumedCapacity; + } + + public V1beta1DeviceRequestAllocationResult device(String device) { this.device = device; @@ -168,6 +280,29 @@ public void setRequest(String request) { } + public V1beta1DeviceRequestAllocationResult shareID(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 + **/ + @javax.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(String shareID) { + this.shareID = shareID; + } + + public V1beta1DeviceRequestAllocationResult tolerations(List tolerations) { this.tolerations = tolerations; @@ -209,16 +344,20 @@ public boolean equals(java.lang.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); } @@ -227,10 +366,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(); 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 dbe946de6b..9c165e29c9 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 @@ -28,7 +28,7 @@ * DeviceSelector must have exactly one field set. */ @ApiModel(description = "DeviceSelector must have exactly one field set.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 951c1c8e45..68b146f331 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java @@ -19,6 +19,7 @@ import com.google.gson.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; @@ -31,12 +32,16 @@ * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta1DeviceSubRequest { public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) private String allocationMode; + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + private V1beta1CapacityRequirements capacity; + public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) private Long count; @@ -81,6 +86,29 @@ public void setAllocationMode(String allocationMode) { } + public V1beta1DeviceSubRequest capacity(V1beta1CapacityRequirements capacity) { + + this.capacity = capacity; + return this; + } + + /** + * Get capacity + * @return capacity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1beta1CapacityRequirements getCapacity() { + return capacity; + } + + + public void setCapacity(V1beta1CapacityRequirements capacity) { + this.capacity = capacity; + } + + public V1beta1DeviceSubRequest count(Long count) { this.count = count; @@ -220,6 +248,7 @@ public boolean equals(java.lang.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) && @@ -229,7 +258,7 @@ public boolean equals(java.lang.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); } @@ -238,6 +267,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"); 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 05716bfcee..c3d8006a82 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 cc2b85825d..2e1fe9f0bc 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 @@ -27,7 +27,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 .") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0c62296156..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarning.java +++ /dev/null @@ -1,125 +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 java.util.Arrays; -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; - -/** - * ExpressionWarning is a warning information that targets a specific expression. - */ -@ApiModel(description = "ExpressionWarning is a warning information that targets a specific expression.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1beta1ExpressionWarning { - public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; - @SerializedName(SERIALIZED_NAME_FIELD_REF) - private String fieldRef; - - public static final String SERIALIZED_NAME_WARNING = "warning"; - @SerializedName(SERIALIZED_NAME_WARNING) - private String warning; - - - public V1beta1ExpressionWarning fieldRef(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 - **/ - @ApiModelProperty(required = true, value = "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"") - - public String getFieldRef() { - return fieldRef; - } - - - public void setFieldRef(String fieldRef) { - this.fieldRef = fieldRef; - } - - - public V1beta1ExpressionWarning warning(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 - **/ - @ApiModelProperty(required = true, value = "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.") - - public String getWarning() { - return warning; - } - - - public void setWarning(String warning) { - this.warning = warning; - } - - - @Override - public boolean equals(java.lang.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(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 7d97dc1880..38f25aa4c1 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 @@ -29,7 +29,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8891ba83a4..15be9f27d5 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 @@ -31,7 +31,7 @@ * IPAddressList contains a list of IPAddress. */ @ApiModel(description = "IPAddressList contains a list of IPAddress.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3fec4caae3..3fa3130ce0 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 @@ -28,7 +28,7 @@ * IPAddressSpec describe the attributes in an IP Address. */ @ApiModel(description = "IPAddressSpec describe the attributes in an IP Address.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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..d874c5e546 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java @@ -0,0 +1,98 @@ +/* +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 java.util.Arrays; +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; + +/** + * JSONPatch defines a JSON Patch. + */ +@ApiModel(description = "JSONPatch defines a JSON Patch.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1beta1JSONPatch { + public static final String SERIALIZED_NAME_EXPRESSION = "expression"; + @SerializedName(SERIALIZED_NAME_EXPRESSION) + private String expression; + + + public V1beta1JSONPatch expression(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 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec expression must return an array of JSONPatch values. For example, this CEL expression returns a JSON patch to conditionally modify a value: [ JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"}, JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"} ] To define an object for the patch value, use Object types. For example: [ JSONPatch{ op: \"add\", path: \"/spec/selector\", value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}} } ] To use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example: [ JSONPatch{ op: \"add\", path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"), value: \"test\" }, ] CEL expressions have access to the types needed to create JSON patches and objects: - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, integer, array, map or object. If set, the 'path' and 'from' fields must be set to a [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as: - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.") + + public String getExpression() { + return expression; + } + + + public void setExpression(String expression) { + this.expression = expression; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 22260612fa..0407ee66dd 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 98383c7149..aea06d2975 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 @@ -31,7 +31,7 @@ * LeaseCandidateList is a list of Lease objects. */ @ApiModel(description = "LeaseCandidateList is a list of Lease objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 324e881169..c45d173c8d 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 @@ -28,7 +28,7 @@ * LeaseCandidateSpec is a specification of a Lease. */ @ApiModel(description = "LeaseCandidateSpec is a specification of a Lease.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4f57b1bd2e..13aa0db827 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c04b87553c..ad3c4afc28 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 @@ -31,7 +31,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)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java new file mode 100644 index 0000000000..0e3533da96 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java @@ -0,0 +1,187 @@ +/* +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 java.util.Arrays; +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.V1beta1MutatingAdmissionPolicySpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1beta1MutatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1MutatingAdmissionPolicySpec spec; + + + public V1beta1MutatingAdmissionPolicy apiVersion(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 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") + + public String getApiVersion() { + return apiVersion; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1beta1MutatingAdmissionPolicy kind(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 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + + public String getKind() { + return kind; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1beta1MutatingAdmissionPolicy metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1beta1MutatingAdmissionPolicy spec(V1beta1MutatingAdmissionPolicySpec spec) { + + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1beta1MutatingAdmissionPolicySpec getSpec() { + return spec; + } + + + public void setSpec(V1beta1MutatingAdmissionPolicySpec spec) { + this.spec = spec; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + 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 + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + 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"); + 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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java similarity index 63% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBinding.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java index 1ea397ef43..642bcd8931 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java @@ -20,17 +20,17 @@ 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.V1beta1MutatingAdmissionPolicyBindingSpec; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; /** - * 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. + * 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 = "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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1beta1ValidatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1beta1MutatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) private String apiVersion; @@ -45,10 +45,10 @@ public class V1beta1ValidatingAdmissionPolicyBinding implements io.kubernetes.cl public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - private V1beta1ValidatingAdmissionPolicyBindingSpec spec; + private V1beta1MutatingAdmissionPolicyBindingSpec spec; - public V1beta1ValidatingAdmissionPolicyBinding apiVersion(String apiVersion) { + public V1beta1MutatingAdmissionPolicyBinding apiVersion(String apiVersion) { this.apiVersion = apiVersion; return this; @@ -71,7 +71,7 @@ public void setApiVersion(String apiVersion) { } - public V1beta1ValidatingAdmissionPolicyBinding kind(String kind) { + public V1beta1MutatingAdmissionPolicyBinding kind(String kind) { this.kind = kind; return this; @@ -94,7 +94,7 @@ public void setKind(String kind) { } - public V1beta1ValidatingAdmissionPolicyBinding metadata(V1ObjectMeta metadata) { + public V1beta1MutatingAdmissionPolicyBinding metadata(V1ObjectMeta metadata) { this.metadata = metadata; return this; @@ -117,7 +117,7 @@ public void setMetadata(V1ObjectMeta metadata) { } - public V1beta1ValidatingAdmissionPolicyBinding spec(V1beta1ValidatingAdmissionPolicyBindingSpec spec) { + public V1beta1MutatingAdmissionPolicyBinding spec(V1beta1MutatingAdmissionPolicyBindingSpec spec) { this.spec = spec; return this; @@ -130,12 +130,12 @@ public V1beta1ValidatingAdmissionPolicyBinding spec(V1beta1ValidatingAdmissionPo @javax.annotation.Nullable @ApiModelProperty(value = "") - public V1beta1ValidatingAdmissionPolicyBindingSpec getSpec() { + public V1beta1MutatingAdmissionPolicyBindingSpec getSpec() { return spec; } - public void setSpec(V1beta1ValidatingAdmissionPolicyBindingSpec spec) { + public void setSpec(V1beta1MutatingAdmissionPolicyBindingSpec spec) { this.spec = spec; } @@ -148,11 +148,11 @@ public boolean equals(java.lang.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); + 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 @@ -164,7 +164,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ValidatingAdmissionPolicyBinding {\n"); + 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"); 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 74% 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 d129bc1e0e..38b2a62192 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 @@ -20,7 +20,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; @@ -28,18 +28,18 @@ import java.util.List; /** - * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. + * MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. */ -@ApiModel(description = "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1beta1ValidatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { +@ApiModel(description = "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1beta1MutatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList<>(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -50,7 +50,7 @@ public class V1beta1ValidatingAdmissionPolicyBindingList implements io.kubernete private V1ListMeta metadata; - public V1beta1ValidatingAdmissionPolicyBindingList apiVersion(String apiVersion) { + public V1beta1MutatingAdmissionPolicyBindingList apiVersion(String apiVersion) { this.apiVersion = apiVersion; return this; @@ -73,13 +73,13 @@ public void setApiVersion(String apiVersion) { } - public V1beta1ValidatingAdmissionPolicyBindingList items(List items) { + public V1beta1MutatingAdmissionPolicyBindingList items(List items) { this.items = items; return this; } - public V1beta1ValidatingAdmissionPolicyBindingList addItemsItem(V1beta1ValidatingAdmissionPolicyBinding itemsItem) { + public V1beta1MutatingAdmissionPolicyBindingList addItemsItem(V1beta1MutatingAdmissionPolicyBinding itemsItem) { this.items.add(itemsItem); return this; } @@ -90,17 +90,17 @@ public V1beta1ValidatingAdmissionPolicyBindingList addItemsItem(V1beta1Validatin **/ @ApiModelProperty(required = true, value = "List of PolicyBinding.") - public List getItems() { + public List getItems() { return items; } - public void setItems(List items) { + public void setItems(List items) { this.items = items; } - public V1beta1ValidatingAdmissionPolicyBindingList kind(String kind) { + public V1beta1MutatingAdmissionPolicyBindingList kind(String kind) { this.kind = kind; return this; @@ -123,7 +123,7 @@ public void setKind(String kind) { } - public V1beta1ValidatingAdmissionPolicyBindingList metadata(V1ListMeta metadata) { + public V1beta1MutatingAdmissionPolicyBindingList metadata(V1ListMeta metadata) { this.metadata = metadata; return this; @@ -154,11 +154,11 @@ public boolean equals(java.lang.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 @@ -170,7 +170,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"); 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..10d6b6fdde --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java @@ -0,0 +1,158 @@ +/* +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 java.util.Arrays; +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; + +/** + * MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding. + */ +@ApiModel(description = "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1beta1MutatingAdmissionPolicyBindingSpec { + public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; + @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) + private V1beta1MatchResources matchResources; + + public static final String SERIALIZED_NAME_PARAM_REF = "paramRef"; + @SerializedName(SERIALIZED_NAME_PARAM_REF) + private V1beta1ParamRef paramRef; + + public static final String SERIALIZED_NAME_POLICY_NAME = "policyName"; + @SerializedName(SERIALIZED_NAME_POLICY_NAME) + private String policyName; + + + public V1beta1MutatingAdmissionPolicyBindingSpec matchResources(V1beta1MatchResources matchResources) { + + this.matchResources = matchResources; + return this; + } + + /** + * Get matchResources + * @return matchResources + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1beta1MatchResources getMatchResources() { + return matchResources; + } + + + public void setMatchResources(V1beta1MatchResources matchResources) { + this.matchResources = matchResources; + } + + + public V1beta1MutatingAdmissionPolicyBindingSpec paramRef(V1beta1ParamRef paramRef) { + + this.paramRef = paramRef; + return this; + } + + /** + * Get paramRef + * @return paramRef + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1beta1ParamRef getParamRef() { + return paramRef; + } + + + public void setParamRef(V1beta1ParamRef paramRef) { + this.paramRef = paramRef; + } + + + public V1beta1MutatingAdmissionPolicyBindingSpec policyName(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 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.") + + public String getPolicyName() { + return policyName; + } + + + public void setPolicyName(String policyName) { + this.policyName = policyName; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 76% 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 6da007a9ea..463addc6a2 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 @@ -20,7 +20,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; @@ -28,18 +28,18 @@ import java.util.List; /** - * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. + * MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. */ -@ApiModel(description = "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1beta1ValidatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { +@ApiModel(description = "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1beta1MutatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) private String apiVersion; public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) - private List items = new ArrayList<>(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -50,7 +50,7 @@ public class V1beta1ValidatingAdmissionPolicyList implements io.kubernetes.clien private V1ListMeta metadata; - public V1beta1ValidatingAdmissionPolicyList apiVersion(String apiVersion) { + public V1beta1MutatingAdmissionPolicyList apiVersion(String apiVersion) { this.apiVersion = apiVersion; return this; @@ -73,13 +73,13 @@ public void setApiVersion(String apiVersion) { } - public V1beta1ValidatingAdmissionPolicyList items(List items) { + public V1beta1MutatingAdmissionPolicyList items(List items) { this.items = items; return this; } - public V1beta1ValidatingAdmissionPolicyList addItemsItem(V1beta1ValidatingAdmissionPolicy itemsItem) { + public V1beta1MutatingAdmissionPolicyList addItemsItem(V1beta1MutatingAdmissionPolicy itemsItem) { this.items.add(itemsItem); return this; } @@ -90,17 +90,17 @@ public V1beta1ValidatingAdmissionPolicyList addItemsItem(V1beta1ValidatingAdmiss **/ @ApiModelProperty(required = true, value = "List of ValidatingAdmissionPolicy.") - public List getItems() { + public List getItems() { return items; } - public void setItems(List items) { + public void setItems(List items) { this.items = items; } - public V1beta1ValidatingAdmissionPolicyList kind(String kind) { + public V1beta1MutatingAdmissionPolicyList kind(String kind) { this.kind = kind; return this; @@ -123,7 +123,7 @@ public void setKind(String kind) { } - public V1beta1ValidatingAdmissionPolicyList metadata(V1ListMeta metadata) { + public V1beta1MutatingAdmissionPolicyList metadata(V1ListMeta metadata) { this.metadata = metadata; return this; @@ -154,11 +154,11 @@ public boolean equals(java.lang.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 @@ -170,7 +170,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"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java new file mode 100644 index 0000000000..d66bdb24bf --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java @@ -0,0 +1,303 @@ +/* +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 java.util.Arrays; +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.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.V1beta1Variable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1beta1MutatingAdmissionPolicySpec { + public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; + @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) + private String failurePolicy; + + public static final String SERIALIZED_NAME_MATCH_CONDITIONS = "matchConditions"; + @SerializedName(SERIALIZED_NAME_MATCH_CONDITIONS) + private List matchConditions = null; + + public static final String SERIALIZED_NAME_MATCH_CONSTRAINTS = "matchConstraints"; + @SerializedName(SERIALIZED_NAME_MATCH_CONSTRAINTS) + private V1beta1MatchResources matchConstraints; + + public static final String SERIALIZED_NAME_MUTATIONS = "mutations"; + @SerializedName(SERIALIZED_NAME_MUTATIONS) + private List mutations = null; + + public static final String SERIALIZED_NAME_PARAM_KIND = "paramKind"; + @SerializedName(SERIALIZED_NAME_PARAM_KIND) + private V1beta1ParamKind paramKind; + + public static final String SERIALIZED_NAME_REINVOCATION_POLICY = "reinvocationPolicy"; + @SerializedName(SERIALIZED_NAME_REINVOCATION_POLICY) + private String reinvocationPolicy; + + public static final String SERIALIZED_NAME_VARIABLES = "variables"; + @SerializedName(SERIALIZED_NAME_VARIABLES) + private List variables = null; + + + public V1beta1MutatingAdmissionPolicySpec failurePolicy(String failurePolicy) { + + this.failurePolicy = failurePolicy; + return this; + } + + /** + * failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. Allowed values are Ignore or Fail. Defaults to Fail. + * @return failurePolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. Allowed values are Ignore or Fail. Defaults to Fail.") + + public String getFailurePolicy() { + return failurePolicy; + } + + + public void setFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; + } + + + public V1beta1MutatingAdmissionPolicySpec matchConditions(List matchConditions) { + + this.matchConditions = matchConditions; + return this; + } + + public V1beta1MutatingAdmissionPolicySpec addMatchConditionsItem(V1beta1MatchCondition matchConditionsItem) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList<>(); + } + this.matchConditions.add(matchConditionsItem); + return this; + } + + /** + * matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped + * @return matchConditions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped") + + public List getMatchConditions() { + return matchConditions; + } + + + public void setMatchConditions(List matchConditions) { + this.matchConditions = matchConditions; + } + + + public V1beta1MutatingAdmissionPolicySpec matchConstraints(V1beta1MatchResources matchConstraints) { + + this.matchConstraints = matchConstraints; + return this; + } + + /** + * Get matchConstraints + * @return matchConstraints + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1beta1MatchResources getMatchConstraints() { + return matchConstraints; + } + + + public void setMatchConstraints(V1beta1MatchResources matchConstraints) { + this.matchConstraints = matchConstraints; + } + + + public V1beta1MutatingAdmissionPolicySpec mutations(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 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.") + + public List getMutations() { + return mutations; + } + + + public void setMutations(List mutations) { + this.mutations = mutations; + } + + + public V1beta1MutatingAdmissionPolicySpec paramKind(V1beta1ParamKind paramKind) { + + this.paramKind = paramKind; + return this; + } + + /** + * Get paramKind + * @return paramKind + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1beta1ParamKind getParamKind() { + return paramKind; + } + + + public void setParamKind(V1beta1ParamKind paramKind) { + this.paramKind = paramKind; + } + + + public V1beta1MutatingAdmissionPolicySpec reinvocationPolicy(String reinvocationPolicy) { + + this.reinvocationPolicy = reinvocationPolicy; + return this; + } + + /** + * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: These mutations will not be called more than once per binding in a single admission evaluation. IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required. + * @return reinvocationPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: These mutations will not be called more than once per binding in a single admission evaluation. IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.") + + public String getReinvocationPolicy() { + return reinvocationPolicy; + } + + + public void setReinvocationPolicy(String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; + } + + + public V1beta1MutatingAdmissionPolicySpec variables(List variables) { + + this.variables = variables; + return this; + } + + public V1beta1MutatingAdmissionPolicySpec addVariablesItem(V1beta1Variable variablesItem) { + if (this.variables == null) { + this.variables = new ArrayList<>(); + } + this.variables.add(variablesItem); + return this; + } + + /** + * variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic. + * @return variables + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic.") + + public List getVariables() { + return variables; + } + + + public void setVariables(List variables) { + this.variables = variables; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + 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(failurePolicy, matchConditions, matchConstraints, mutations, paramKind, reinvocationPolicy, variables); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + 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(" reinvocationPolicy: ").append(toIndentedString(reinvocationPolicy)).append("\n"); + sb.append(" variables: ").append(toIndentedString(variables)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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..d0e3a6b236 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java @@ -0,0 +1,157 @@ +/* +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 java.util.Arrays; +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; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1beta1Mutation { + public static final String SERIALIZED_NAME_APPLY_CONFIGURATION = "applyConfiguration"; + @SerializedName(SERIALIZED_NAME_APPLY_CONFIGURATION) + private V1beta1ApplyConfiguration applyConfiguration; + + public static final String SERIALIZED_NAME_JSON_PATCH = "jsonPatch"; + @SerializedName(SERIALIZED_NAME_JSON_PATCH) + private V1beta1JSONPatch jsonPatch; + + public static final String SERIALIZED_NAME_PATCH_TYPE = "patchType"; + @SerializedName(SERIALIZED_NAME_PATCH_TYPE) + private String patchType; + + + public V1beta1Mutation applyConfiguration(V1beta1ApplyConfiguration applyConfiguration) { + + this.applyConfiguration = applyConfiguration; + return this; + } + + /** + * Get applyConfiguration + * @return applyConfiguration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1beta1ApplyConfiguration getApplyConfiguration() { + return applyConfiguration; + } + + + public void setApplyConfiguration(V1beta1ApplyConfiguration applyConfiguration) { + this.applyConfiguration = applyConfiguration; + } + + + public V1beta1Mutation jsonPatch(V1beta1JSONPatch jsonPatch) { + + this.jsonPatch = jsonPatch; + return this; + } + + /** + * Get jsonPatch + * @return jsonPatch + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1beta1JSONPatch getJsonPatch() { + return jsonPatch; + } + + + public void setJsonPatch(V1beta1JSONPatch jsonPatch) { + this.jsonPatch = jsonPatch; + } + + + public V1beta1Mutation patchType(String patchType) { + + this.patchType = patchType; + return this; + } + + /** + * patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required. + * @return patchType + **/ + @ApiModelProperty(required = true, value = "patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required.") + + public String getPatchType() { + return patchType; + } + + + public void setPatchType(String patchType) { + this.patchType = patchType; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 31600b03d7..df1b404ede 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 @@ -29,7 +29,7 @@ * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ @ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 36b8491fbb..1357a428d8 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a5eea35898..b3f444a25b 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 71e7dcb84c..179d4385b5 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 @@ -27,7 +27,7 @@ * ParamKind is a tuple of Group Kind and Version. */ @ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8128b2408f..104bd9f543 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8b6160e1a1..59146e5fbe 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 @@ -27,7 +27,7 @@ * ParentReference describes a reference to a parent object. */ @ApiModel(description = "ParentReference describes a reference to a parent object.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 775f4614b0..afee620d73 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 115ac570b3..84ca4a27c2 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 2016154e08..14aecae4cc 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 @@ -31,7 +31,7 @@ * ResourceClaimList is a collection of claims. */ @ApiModel(description = "ResourceClaimList is a collection of claims.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a9b540bc42..290c1a4cd6 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b9a2b86e4a..f13b4b35f0 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 @@ -32,7 +32,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3e83b8cc4e..c52f2fc672 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e5af180478..db75d1c107 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 @@ -31,7 +31,7 @@ * ResourceClaimTemplateList is a collection of claim templates. */ @ApiModel(description = "ResourceClaimTemplateList is a collection of claim templates.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 51ccac79f1..cb758111e3 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 @@ -29,7 +29,7 @@ * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. */ @ApiModel(description = "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 6f37def7c6..10ae0c3397 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 @@ -27,7 +27,7 @@ * ResourcePool describes the pool that ResourceSlices belong to. */ @ApiModel(description = "ResourcePool describes the pool that ResourceSlices belong to.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 1c7f0f87fc..377ff84be0 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 bf61b7b03c..bc2a1d9d16 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 @@ -31,7 +31,7 @@ * ResourceSliceList is a collection of ResourceSlices. */ @ApiModel(description = "ResourceSliceList is a collection of ResourceSlices.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3d3956f83e..9158e2444c 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 @@ -33,7 +33,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c07817a2e3..25f8ed693f 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 07f089322a..aae5edc19a 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 @@ -31,7 +31,7 @@ * ServiceCIDRList contains a list of ServiceCIDR objects. */ @ApiModel(description = "ServiceCIDRList contains a list of ServiceCIDR objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 2e989495c6..47497ded22 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b353d3069e..690e315ec0 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 @@ -30,7 +30,7 @@ * ServiceCIDRStatus describes the current state of the ServiceCIDR. */ @ApiModel(description = "ServiceCIDRStatus describes the current state of the ServiceCIDR.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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/V1beta1TypeChecking.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeChecking.java deleted file mode 100644 index a7f1dff5a0..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeChecking.java +++ /dev/null @@ -1,109 +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 java.util.Arrays; -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.V1beta1ExpressionWarning; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy - */ -@ApiModel(description = "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1beta1TypeChecking { - public static final String SERIALIZED_NAME_EXPRESSION_WARNINGS = "expressionWarnings"; - @SerializedName(SERIALIZED_NAME_EXPRESSION_WARNINGS) - private List expressionWarnings = null; - - - public V1beta1TypeChecking expressionWarnings(List expressionWarnings) { - - this.expressionWarnings = expressionWarnings; - return this; - } - - public V1beta1TypeChecking addExpressionWarningsItem(V1beta1ExpressionWarning expressionWarningsItem) { - if (this.expressionWarnings == null) { - this.expressionWarnings = new ArrayList<>(); - } - this.expressionWarnings.add(expressionWarningsItem); - return this; - } - - /** - * The type checking warnings for each expression. - * @return expressionWarnings - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The type checking warnings for each expression.") - - public List getExpressionWarnings() { - return expressionWarnings; - } - - - public void setExpressionWarnings(List expressionWarnings) { - this.expressionWarnings = expressionWarnings; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1TypeChecking v1beta1TypeChecking = (V1beta1TypeChecking) o; - return Objects.equals(this.expressionWarnings, v1beta1TypeChecking.expressionWarnings); - } - - @Override - public int hashCode() { - return Objects.hash(expressionWarnings); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1TypeChecking {\n"); - sb.append(" expressionWarnings: ").append(toIndentedString(expressionWarnings)).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(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 992751ed77..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpec.java +++ /dev/null @@ -1,197 +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 java.util.Arrays; -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.List; - -/** - * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. - */ -@ApiModel(description = "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1beta1ValidatingAdmissionPolicyBindingSpec { - public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; - @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) - private V1beta1MatchResources matchResources; - - public static final String SERIALIZED_NAME_PARAM_REF = "paramRef"; - @SerializedName(SERIALIZED_NAME_PARAM_REF) - private V1beta1ParamRef paramRef; - - public static final String SERIALIZED_NAME_POLICY_NAME = "policyName"; - @SerializedName(SERIALIZED_NAME_POLICY_NAME) - private String policyName; - - public static final String SERIALIZED_NAME_VALIDATION_ACTIONS = "validationActions"; - @SerializedName(SERIALIZED_NAME_VALIDATION_ACTIONS) - private List validationActions = null; - - - public V1beta1ValidatingAdmissionPolicyBindingSpec matchResources(V1beta1MatchResources matchResources) { - - this.matchResources = matchResources; - return this; - } - - /** - * Get matchResources - * @return matchResources - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1beta1MatchResources getMatchResources() { - return matchResources; - } - - - public void setMatchResources(V1beta1MatchResources matchResources) { - this.matchResources = matchResources; - } - - - public V1beta1ValidatingAdmissionPolicyBindingSpec paramRef(V1beta1ParamRef paramRef) { - - this.paramRef = paramRef; - return this; - } - - /** - * Get paramRef - * @return paramRef - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1beta1ParamRef getParamRef() { - return paramRef; - } - - - public void setParamRef(V1beta1ParamRef paramRef) { - this.paramRef = paramRef; - } - - - public V1beta1ValidatingAdmissionPolicyBindingSpec policyName(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 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.") - - public String getPolicyName() { - return policyName; - } - - - public void setPolicyName(String policyName) { - this.policyName = policyName; - } - - - public V1beta1ValidatingAdmissionPolicyBindingSpec validationActions(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 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required.") - - public List getValidationActions() { - return validationActions; - } - - - public void setValidationActions(List validationActions) { - this.validationActions = validationActions; - } - - - @Override - public boolean equals(java.lang.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(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpec.java deleted file mode 100644 index aaea71ff25..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpec.java +++ /dev/null @@ -1,312 +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 java.util.Arrays; -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.V1beta1AuditAnnotation; -import io.kubernetes.client.openapi.models.V1beta1MatchCondition; -import io.kubernetes.client.openapi.models.V1beta1MatchResources; -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; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. - */ -@ApiModel(description = "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1beta1ValidatingAdmissionPolicySpec { - public static final String SERIALIZED_NAME_AUDIT_ANNOTATIONS = "auditAnnotations"; - @SerializedName(SERIALIZED_NAME_AUDIT_ANNOTATIONS) - private List auditAnnotations = null; - - public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; - @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) - private String failurePolicy; - - public static final String SERIALIZED_NAME_MATCH_CONDITIONS = "matchConditions"; - @SerializedName(SERIALIZED_NAME_MATCH_CONDITIONS) - private List matchConditions = null; - - public static final String SERIALIZED_NAME_MATCH_CONSTRAINTS = "matchConstraints"; - @SerializedName(SERIALIZED_NAME_MATCH_CONSTRAINTS) - private V1beta1MatchResources matchConstraints; - - public static final String SERIALIZED_NAME_PARAM_KIND = "paramKind"; - @SerializedName(SERIALIZED_NAME_PARAM_KIND) - private V1beta1ParamKind paramKind; - - public static final String SERIALIZED_NAME_VALIDATIONS = "validations"; - @SerializedName(SERIALIZED_NAME_VALIDATIONS) - private List validations = null; - - public static final String SERIALIZED_NAME_VARIABLES = "variables"; - @SerializedName(SERIALIZED_NAME_VARIABLES) - private List variables = null; - - - public V1beta1ValidatingAdmissionPolicySpec auditAnnotations(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; - } - - /** - * 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 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.") - - public List getAuditAnnotations() { - return auditAnnotations; - } - - - public void setAuditAnnotations(List auditAnnotations) { - this.auditAnnotations = auditAnnotations; - } - - - public V1beta1ValidatingAdmissionPolicySpec failurePolicy(String failurePolicy) { - - this.failurePolicy = failurePolicy; - return this; - } - - /** - * failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. Allowed values are Ignore or Fail. Defaults to Fail. - * @return failurePolicy - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. Allowed values are Ignore or Fail. Defaults to Fail.") - - public String getFailurePolicy() { - return failurePolicy; - } - - - public void setFailurePolicy(String failurePolicy) { - this.failurePolicy = failurePolicy; - } - - - public V1beta1ValidatingAdmissionPolicySpec matchConditions(List matchConditions) { - - this.matchConditions = matchConditions; - return this; - } - - public V1beta1ValidatingAdmissionPolicySpec addMatchConditionsItem(V1beta1MatchCondition matchConditionsItem) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList<>(); - } - this.matchConditions.add(matchConditionsItem); - return this; - } - - /** - * MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped - * @return matchConditions - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped") - - public List getMatchConditions() { - return matchConditions; - } - - - public void setMatchConditions(List matchConditions) { - this.matchConditions = matchConditions; - } - - - public V1beta1ValidatingAdmissionPolicySpec matchConstraints(V1beta1MatchResources matchConstraints) { - - this.matchConstraints = matchConstraints; - return this; - } - - /** - * Get matchConstraints - * @return matchConstraints - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1beta1MatchResources getMatchConstraints() { - return matchConstraints; - } - - - public void setMatchConstraints(V1beta1MatchResources matchConstraints) { - this.matchConstraints = matchConstraints; - } - - - public V1beta1ValidatingAdmissionPolicySpec paramKind(V1beta1ParamKind paramKind) { - - this.paramKind = paramKind; - return this; - } - - /** - * Get paramKind - * @return paramKind - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1beta1ParamKind getParamKind() { - return paramKind; - } - - - public void setParamKind(V1beta1ParamKind paramKind) { - this.paramKind = paramKind; - } - - - public V1beta1ValidatingAdmissionPolicySpec validations(List validations) { - - this.validations = validations; - return this; - } - - public V1beta1ValidatingAdmissionPolicySpec addValidationsItem(V1beta1Validation validationsItem) { - if (this.validations == null) { - this.validations = new ArrayList<>(); - } - this.validations.add(validationsItem); - 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 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.") - - public List getValidations() { - return validations; - } - - - public void setValidations(List validations) { - this.validations = validations; - } - - - public V1beta1ValidatingAdmissionPolicySpec variables(List variables) { - - this.variables = variables; - return this; - } - - public V1beta1ValidatingAdmissionPolicySpec addVariablesItem(V1beta1Variable variablesItem) { - if (this.variables == null) { - this.variables = new ArrayList<>(); - } - this.variables.add(variablesItem); - return this; - } - - /** - * Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. - * @return variables - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.") - - public List getVariables() { - return variables; - } - - - public void setVariables(List variables) { - this.variables = variables; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - 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); - } - - @Override - public int hashCode() { - return Objects.hash(auditAnnotations, failurePolicy, matchConditions, matchConstraints, paramKind, validations, variables); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ValidatingAdmissionPolicySpec {\n"); - sb.append(" auditAnnotations: ").append(toIndentedString(auditAnnotations)).append("\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(" paramKind: ").append(toIndentedString(paramKind)).append("\n"); - sb.append(" validations: ").append(toIndentedString(validations)).append("\n"); - sb.append(" variables: ").append(toIndentedString(variables)).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(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 7216c8b6ca..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatus.java +++ /dev/null @@ -1,168 +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 java.util.Arrays; -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.List; - -/** - * ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. - */ -@ApiModel(description = "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1beta1ValidatingAdmissionPolicyStatus { - public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; - @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; - - public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; - @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) - private Long observedGeneration; - - public static final String SERIALIZED_NAME_TYPE_CHECKING = "typeChecking"; - @SerializedName(SERIALIZED_NAME_TYPE_CHECKING) - private V1beta1TypeChecking typeChecking; - - - public V1beta1ValidatingAdmissionPolicyStatus conditions(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 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The conditions represent the latest available observations of a policy's current state.") - - public List getConditions() { - return conditions; - } - - - public void setConditions(List conditions) { - this.conditions = conditions; - } - - - public V1beta1ValidatingAdmissionPolicyStatus observedGeneration(Long observedGeneration) { - - this.observedGeneration = observedGeneration; - return this; - } - - /** - * The generation observed by the controller. - * @return observedGeneration - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The generation observed by the controller.") - - public Long getObservedGeneration() { - return observedGeneration; - } - - - public void setObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - } - - - public V1beta1ValidatingAdmissionPolicyStatus typeChecking(V1beta1TypeChecking typeChecking) { - - this.typeChecking = typeChecking; - return this; - } - - /** - * Get typeChecking - * @return typeChecking - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public V1beta1TypeChecking getTypeChecking() { - return typeChecking; - } - - - public void setTypeChecking(V1beta1TypeChecking typeChecking) { - this.typeChecking = typeChecking; - } - - - @Override - public boolean equals(java.lang.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(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 1ebc7d63b4..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Validation.java +++ /dev/null @@ -1,184 +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 java.util.Arrays; -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; - -/** - * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") -public class V1beta1Validation { - public static final String SERIALIZED_NAME_EXPRESSION = "expression"; - @SerializedName(SERIALIZED_NAME_EXPRESSION) - private String expression; - - public static final String SERIALIZED_NAME_MESSAGE = "message"; - @SerializedName(SERIALIZED_NAME_MESSAGE) - private String message; - - public static final String SERIALIZED_NAME_MESSAGE_EXPRESSION = "messageExpression"; - @SerializedName(SERIALIZED_NAME_MESSAGE_EXPRESSION) - private String messageExpression; - - public static final String SERIALIZED_NAME_REASON = "reason"; - @SerializedName(SERIALIZED_NAME_REASON) - private String reason; - - - public V1beta1Validation expression(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 - **/ - @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required.") - - public String getExpression() { - return expression; - } - - - public void setExpression(String expression) { - this.expression = expression; - } - - - public V1beta1Validation message(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 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".") - - public String getMessage() { - return message; - } - - - public void setMessage(String message) { - this.message = message; - } - - - public V1beta1Validation messageExpression(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 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"") - - public String getMessageExpression() { - return messageExpression; - } - - - public void setMessageExpression(String messageExpression) { - this.messageExpression = messageExpression; - } - - - public V1beta1Validation reason(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 - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.") - - public String getReason() { - return reason; - } - - - public void setReason(String reason) { - this.reason = reason; - } - - - @Override - public boolean equals(java.lang.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(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} 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 6e1e77a959..8b2ec81502 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 30a44b7753..948f09cdd1 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 8772f35b97..642c1e129f 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 @@ -31,7 +31,7 @@ * VolumeAttributesClassList is a collection of VolumeAttributesClass objects. */ @ApiModel(description = "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 182018e97b..9b79e02b01 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 @@ -28,10 +28,10 @@ import java.util.List; /** - * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta2AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -57,6 +57,10 @@ public class V1beta2AllocatedDeviceStatus { @SerializedName(SERIALIZED_NAME_POOL) private String pool; + public static final String SERIALIZED_NAME_SHARE_I_D = "shareID"; + @SerializedName(SERIALIZED_NAME_SHARE_I_D) + private String shareID; + public V1beta2AllocatedDeviceStatus conditions(List conditions) { @@ -201,6 +205,29 @@ public void setPool(String pool) { } + public V1beta2AllocatedDeviceStatus shareID(String shareID) { + + this.shareID = shareID; + return this; + } + + /** + * ShareID uniquely identifies an individual allocation share of the device. + * @return shareID + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "ShareID uniquely identifies an individual allocation share of the device.") + + public String getShareID() { + return shareID; + } + + + public void setShareID(String shareID) { + this.shareID = shareID; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -215,12 +242,13 @@ public boolean equals(java.lang.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); } @@ -234,6 +262,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(); } 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 e5fbf045d4..3f3c4fd9cd 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 @@ -24,13 +24,18 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.OffsetDateTime; /** * AllocationResult contains attributes of an allocated resource. */ @ApiModel(description = "AllocationResult contains attributes of an allocated resource.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta2AllocationResult { + public static final String SERIALIZED_NAME_ALLOCATION_TIMESTAMP = "allocationTimestamp"; + @SerializedName(SERIALIZED_NAME_ALLOCATION_TIMESTAMP) + private OffsetDateTime allocationTimestamp; + public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) private V1beta2DeviceAllocationResult devices; @@ -40,6 +45,29 @@ public class V1beta2AllocationResult { private V1NodeSelector nodeSelector; + public V1beta2AllocationResult allocationTimestamp(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 + **/ + @javax.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(OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + } + + public V1beta2AllocationResult devices(V1beta2DeviceAllocationResult devices) { this.devices = devices; @@ -95,13 +123,14 @@ public boolean equals(java.lang.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); } @@ -109,6 +138,7 @@ public int hashCode() { 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("}"); 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 31926e45e1..00cd328917 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 @@ -27,7 +27,7 @@ * CELDeviceSelector contains a CEL expression for selecting a device. */ @ApiModel(description = "CELDeviceSelector contains a CEL expression for selecting a device.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta2CELDeviceSelector { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -41,10 +41,10 @@ public V1beta2CELDeviceSelector expression(String expression) { } /** - * 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 **/ - @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..b7d4e4d225 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java @@ -0,0 +1,168 @@ +/* +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 java.util.Arrays; +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.List; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1beta2CapacityRequestPolicy { + public static final String SERIALIZED_NAME_DEFAULT = "default"; + @SerializedName(SERIALIZED_NAME_DEFAULT) + private Quantity _default; + + public static final String SERIALIZED_NAME_VALID_RANGE = "validRange"; + @SerializedName(SERIALIZED_NAME_VALID_RANGE) + private V1beta2CapacityRequestPolicyRange validRange; + + public static final String SERIALIZED_NAME_VALID_VALUES = "validValues"; + @SerializedName(SERIALIZED_NAME_VALID_VALUES) + private List validValues = null; + + + public V1beta2CapacityRequestPolicy _default(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 + **/ + @javax.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(Quantity _default) { + this._default = _default; + } + + + public V1beta2CapacityRequestPolicy validRange(V1beta2CapacityRequestPolicyRange validRange) { + + this.validRange = validRange; + return this; + } + + /** + * Get validRange + * @return validRange + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1beta2CapacityRequestPolicyRange getValidRange() { + return validRange; + } + + + public void setValidRange(V1beta2CapacityRequestPolicyRange validRange) { + this.validRange = validRange; + } + + + public V1beta2CapacityRequestPolicy validValues(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 + **/ + @javax.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(List validValues) { + this.validValues = validValues; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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..b7cf46b0a2 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java @@ -0,0 +1,156 @@ +/* +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 java.util.Arrays; +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; + +/** + * 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.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1beta2CapacityRequestPolicyRange { + public static final String SERIALIZED_NAME_MAX = "max"; + @SerializedName(SERIALIZED_NAME_MAX) + private Quantity max; + + public static final String SERIALIZED_NAME_MIN = "min"; + @SerializedName(SERIALIZED_NAME_MIN) + private Quantity min; + + public static final String SERIALIZED_NAME_STEP = "step"; + @SerializedName(SERIALIZED_NAME_STEP) + private Quantity step; + + + public V1beta2CapacityRequestPolicyRange max(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 + **/ + @javax.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(Quantity max) { + this.max = max; + } + + + public V1beta2CapacityRequestPolicyRange min(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 + **/ + @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(Quantity min) { + this.min = min; + } + + + public V1beta2CapacityRequestPolicyRange step(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 + **/ + @javax.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(Quantity step) { + this.step = step; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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..2d914ba6de --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java @@ -0,0 +1,110 @@ +/* +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 java.util.Arrays; +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.HashMap; +import java.util.List; +import java.util.Map; + +/** + * CapacityRequirements defines the capacity requirements for a specific device request. + */ +@ApiModel(description = "CapacityRequirements defines the capacity requirements for a specific device request.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") +public class V1beta2CapacityRequirements { + public static final String SERIALIZED_NAME_REQUESTS = "requests"; + @SerializedName(SERIALIZED_NAME_REQUESTS) + private Map requests = null; + + + public V1beta2CapacityRequirements requests(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 + **/ + @javax.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(Map requests) { + this.requests = requests; + } + + + @Override + public boolean equals(java.lang.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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} 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 7016dab2cf..53e1422a14 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 @@ -28,7 +28,7 @@ * Counter describes a quantity associated with a device. */ @ApiModel(description = "Counter describes a quantity associated with a device.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 bbcd19f4ca..62889d83b2 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 f3c8382f70..60b4b7c417 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 @@ -36,16 +36,32 @@ * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta2Device { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) private Boolean allNodes; + public static final String SERIALIZED_NAME_ALLOW_MULTIPLE_ALLOCATIONS = "allowMultipleAllocations"; + @SerializedName(SERIALIZED_NAME_ALLOW_MULTIPLE_ALLOCATIONS) + private Boolean allowMultipleAllocations; + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) private Map attributes = null; + public static final String SERIALIZED_NAME_BINDING_CONDITIONS = "bindingConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_CONDITIONS) + private List bindingConditions = null; + + public static final String SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS = "bindingFailureConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS) + private List bindingFailureConditions = null; + + public static final String SERIALIZED_NAME_BINDS_TO_NODE = "bindsToNode"; + @SerializedName(SERIALIZED_NAME_BINDS_TO_NODE) + private Boolean bindsToNode; + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; @SerializedName(SERIALIZED_NAME_CAPACITY) private Map capacity = null; @@ -94,6 +110,29 @@ public void setAllNodes(Boolean allNodes) { } + public V1beta2Device allowMultipleAllocations(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 + **/ + @javax.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(Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + } + + public V1beta2Device attributes(Map attributes) { this.attributes = attributes; @@ -125,6 +164,91 @@ public void setAttributes(Map attributes) { } + public V1beta2Device bindingConditions(List 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 + **/ + @javax.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(List bindingConditions) { + this.bindingConditions = bindingConditions; + } + + + public V1beta2Device bindingFailureConditions(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 + **/ + @javax.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(List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + } + + + public V1beta2Device bindsToNode(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 + **/ + @javax.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(Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + } + + public V1beta2Device capacity(Map capacity) { this.capacity = capacity; @@ -296,7 +420,11 @@ public boolean equals(java.lang.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) && @@ -307,7 +435,7 @@ public boolean equals(java.lang.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); } @@ -316,7 +444,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"); 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 213c914007..54c0a2bde9 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 @@ -30,7 +30,7 @@ * DeviceAllocationConfiguration gets embedded in an AllocationResult. */ @ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 464f3ee6f7..b2b784ec5b 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 @@ -31,7 +31,7 @@ * DeviceAllocationResult is the result of allocating devices. */ @ApiModel(description = "DeviceAllocationResult is the result of allocating devices.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b7ac2a7cca..b830cdaabe 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 @@ -27,7 +27,7 @@ * DeviceAttribute must have exactly one field set. */ @ApiModel(description = "DeviceAttribute must have exactly one field set.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ad31a3172f..922ef63c72 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 @@ -20,6 +20,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; @@ -28,13 +29,40 @@ * DeviceCapacity describes a quantity associated with a device. */ @ApiModel(description = "DeviceCapacity describes a quantity associated with a device.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta2DeviceCapacity { + public static final String SERIALIZED_NAME_REQUEST_POLICY = "requestPolicy"; + @SerializedName(SERIALIZED_NAME_REQUEST_POLICY) + private V1beta2CapacityRequestPolicy requestPolicy; + public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) private Quantity value; + public V1beta2DeviceCapacity requestPolicy(V1beta2CapacityRequestPolicy requestPolicy) { + + this.requestPolicy = requestPolicy; + return this; + } + + /** + * Get requestPolicy + * @return requestPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1beta2CapacityRequestPolicy getRequestPolicy() { + return requestPolicy; + } + + + public void setRequestPolicy(V1beta2CapacityRequestPolicy requestPolicy) { + this.requestPolicy = requestPolicy; + } + + public V1beta2DeviceCapacity value(Quantity value) { this.value = value; @@ -66,12 +94,13 @@ public boolean equals(java.lang.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); } @@ -79,6 +108,7 @@ public int hashCode() { 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(); 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 e3eb4b9d2d..df6ce87af1 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 @@ -32,7 +32,7 @@ * DeviceClaim defines how to request devices with a ResourceClaim. */ @ApiModel(description = "DeviceClaim defines how to request devices with a ResourceClaim.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3860c79e88..2a8d4e52d1 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 @@ -30,7 +30,7 @@ * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. */ @ApiModel(description = "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 c3f71c114d..285726732f 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 46ba741fac..e4582efc18 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 @@ -28,7 +28,7 @@ * DeviceClassConfiguration is used in DeviceClass. */ @ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 6d30777bf9..9c68839610 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 @@ -31,7 +31,7 @@ * DeviceClassList is a collection of classes. */ @ApiModel(description = "DeviceClassList is a collection of classes.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 fdde55143b..d1a8504703 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 @@ -31,12 +31,16 @@ * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta2DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) private List config = null; + public static final String SERIALIZED_NAME_EXTENDED_RESOURCE_NAME = "extendedResourceName"; + @SerializedName(SERIALIZED_NAME_EXTENDED_RESOURCE_NAME) + private String extendedResourceName; + public static final String SERIALIZED_NAME_SELECTORS = "selectors"; @SerializedName(SERIALIZED_NAME_SELECTORS) private List selectors = null; @@ -73,6 +77,29 @@ public void setConfig(List config) { } + public V1beta2DeviceClassSpec extendedResourceName(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 + **/ + @javax.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(String extendedResourceName) { + this.extendedResourceName = extendedResourceName; + } + + public V1beta2DeviceClassSpec selectors(List selectors) { this.selectors = selectors; @@ -114,12 +141,13 @@ public boolean equals(java.lang.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); } @@ -128,6 +156,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(); 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 18747efd89..a9a80f450c 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 @@ -29,8 +29,12 @@ * DeviceConstraint must have exactly one field set besides Requests. */ @ApiModel(description = "DeviceConstraint must have exactly one field set besides Requests.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta2DeviceConstraint { + public static final String SERIALIZED_NAME_DISTINCT_ATTRIBUTE = "distinctAttribute"; + @SerializedName(SERIALIZED_NAME_DISTINCT_ATTRIBUTE) + private String distinctAttribute; + public static final String SERIALIZED_NAME_MATCH_ATTRIBUTE = "matchAttribute"; @SerializedName(SERIALIZED_NAME_MATCH_ATTRIBUTE) private String matchAttribute; @@ -40,6 +44,29 @@ public class V1beta2DeviceConstraint { private List requests = null; + public V1beta2DeviceConstraint distinctAttribute(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 + **/ + @javax.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(String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + } + + public V1beta2DeviceConstraint matchAttribute(String matchAttribute) { this.matchAttribute = matchAttribute; @@ -103,13 +130,14 @@ public boolean equals(java.lang.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); } @@ -117,6 +145,7 @@ public int hashCode() { 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("}"); 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 2702537eca..e846bb3015 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7d052296b4..6fdd5db0dd 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 @@ -31,7 +31,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 78147102c7..e42a733361 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 @@ -19,23 +19,38 @@ 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.HashMap; import java.util.List; +import java.util.Map; /** * DeviceRequestAllocationResult contains the allocation result for one request. */ @ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta2DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) private Boolean adminAccess; + public static final String SERIALIZED_NAME_BINDING_CONDITIONS = "bindingConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_CONDITIONS) + private List bindingConditions = null; + + public static final String SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS = "bindingFailureConditions"; + @SerializedName(SERIALIZED_NAME_BINDING_FAILURE_CONDITIONS) + private List bindingFailureConditions = null; + + public static final String SERIALIZED_NAME_CONSUMED_CAPACITY = "consumedCapacity"; + @SerializedName(SERIALIZED_NAME_CONSUMED_CAPACITY) + private Map consumedCapacity = null; + public static final String SERIALIZED_NAME_DEVICE = "device"; @SerializedName(SERIALIZED_NAME_DEVICE) private String device; @@ -52,6 +67,10 @@ public class V1beta2DeviceRequestAllocationResult { @SerializedName(SERIALIZED_NAME_REQUEST) private String request; + public static final String SERIALIZED_NAME_SHARE_I_D = "shareID"; + @SerializedName(SERIALIZED_NAME_SHARE_I_D) + private String shareID; + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; @SerializedName(SERIALIZED_NAME_TOLERATIONS) private List tolerations = null; @@ -80,6 +99,99 @@ public void setAdminAccess(Boolean adminAccess) { } + public V1beta2DeviceRequestAllocationResult bindingConditions(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 + **/ + @javax.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(List bindingConditions) { + this.bindingConditions = bindingConditions; + } + + + public V1beta2DeviceRequestAllocationResult bindingFailureConditions(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 + **/ + @javax.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(List bindingFailureConditions) { + this.bindingFailureConditions = bindingFailureConditions; + } + + + public V1beta2DeviceRequestAllocationResult consumedCapacity(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 + **/ + @javax.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(Map consumedCapacity) { + this.consumedCapacity = consumedCapacity; + } + + public V1beta2DeviceRequestAllocationResult device(String device) { this.device = device; @@ -168,6 +280,29 @@ public void setRequest(String request) { } + public V1beta2DeviceRequestAllocationResult shareID(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 + **/ + @javax.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(String shareID) { + this.shareID = shareID; + } + + public V1beta2DeviceRequestAllocationResult tolerations(List tolerations) { this.tolerations = tolerations; @@ -209,16 +344,20 @@ public boolean equals(java.lang.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); } @@ -227,10 +366,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(); 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 41606ba803..41bad8d5c4 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 @@ -28,7 +28,7 @@ * DeviceSelector must have exactly one field set. */ @ApiModel(description = "DeviceSelector must have exactly one field set.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 2318885970..f34000f7bb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java @@ -19,6 +19,7 @@ import com.google.gson.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; @@ -31,12 +32,16 @@ * 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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta2DeviceSubRequest { public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) private String allocationMode; + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + private V1beta2CapacityRequirements capacity; + public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) private Long count; @@ -81,6 +86,29 @@ public void setAllocationMode(String allocationMode) { } + public V1beta2DeviceSubRequest capacity(V1beta2CapacityRequirements capacity) { + + this.capacity = capacity; + return this; + } + + /** + * Get capacity + * @return capacity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1beta2CapacityRequirements getCapacity() { + return capacity; + } + + + public void setCapacity(V1beta2CapacityRequirements capacity) { + this.capacity = capacity; + } + + public V1beta2DeviceSubRequest count(Long count) { this.count = count; @@ -220,6 +248,7 @@ public boolean equals(java.lang.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) && @@ -229,7 +258,7 @@ public boolean equals(java.lang.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); } @@ -238,6 +267,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"); 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 0a8f1353ae..3605776219 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 35c043bceb..4deb82980a 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 @@ -27,7 +27,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 .") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 2d6363ec3f..dc93302ccd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java @@ -19,6 +19,7 @@ import com.google.gson.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; @@ -31,7 +32,7 @@ * ExactDeviceRequest is a request for one or more identical devices. */ @ApiModel(description = "ExactDeviceRequest is a request for one or more identical devices.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") public class V1beta2ExactDeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -41,6 +42,10 @@ public class V1beta2ExactDeviceRequest { @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) private String allocationMode; + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) + private V1beta2CapacityRequirements capacity; + public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) private Long count; @@ -104,6 +109,29 @@ public void setAllocationMode(String allocationMode) { } + public V1beta2ExactDeviceRequest capacity(V1beta2CapacityRequirements capacity) { + + this.capacity = capacity; + return this; + } + + /** + * Get capacity + * @return capacity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1beta2CapacityRequirements getCapacity() { + return capacity; + } + + + public void setCapacity(V1beta2CapacityRequirements capacity) { + this.capacity = capacity; + } + + public V1beta2ExactDeviceRequest count(Long count) { this.count = count; @@ -222,6 +250,7 @@ public boolean equals(java.lang.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) && @@ -230,7 +259,7 @@ public boolean equals(java.lang.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); } @@ -240,6 +269,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"); 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 1494fb7da4..22dbda4a1a 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 4e8df3f03f..8b1521941a 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 72fb27bf6e..5e0913d9eb 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b69f8c8c3e..0368ef6f1e 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0fb783a128..ab47d16c97 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 @@ -31,7 +31,7 @@ * ResourceClaimList is a collection of claims. */ @ApiModel(description = "ResourceClaimList is a collection of claims.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3544256b20..a084f984e6 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7c31e7d503..d59be8e91c 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 @@ -32,7 +32,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a26541d3ac..bad2b1cd76 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 a92c43340d..420a5b968d 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 @@ -31,7 +31,7 @@ * ResourceClaimTemplateList is a collection of claim templates. */ @ApiModel(description = "ResourceClaimTemplateList is a collection of claim templates.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 cc6924086f..3993147cdb 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 @@ -29,7 +29,7 @@ * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. */ @ApiModel(description = "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 2a94ee4352..58fe5b5a97 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 @@ -27,7 +27,7 @@ * ResourcePool describes the pool that ResourceSlices belong to. */ @ApiModel(description = "ResourcePool describes the pool that ResourceSlices belong to.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 baceb536c2..735a67860a 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 d18965988f..2a04e1587b 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 @@ -31,7 +31,7 @@ * ResourceSliceList is a collection of ResourceSlices. */ @ApiModel(description = "ResourceSliceList is a collection of ResourceSlices.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3fad91e6a8..aa47bdb6d8 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 @@ -33,7 +33,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 db73e64f87..4c8c832729 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ef4a581606..e63c5d3f36 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0b91b99ee9..4420beb5c0 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ee452be9d8..c4e81b8fda 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 @@ -29,7 +29,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).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e3fd6f9ea4..f67fb59c33 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b267f73a8f..b4b592fad5 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b7b629f046..a136fda421 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 @@ -31,7 +31,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.)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 78bf52b4cd..17e2211ace 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 @@ -30,7 +30,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 e3fc93599c..54cfd8d654 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 @@ -28,7 +28,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).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b0df040687..de3de42e1d 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 75f22e6c15..af2167908e 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 @@ -31,7 +31,7 @@ * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. */ @ApiModel(description = "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 50e83f758a..81c9549ceb 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 @@ -32,7 +32,7 @@ * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. */ @ApiModel(description = "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 76d2006bfd..66c7a550dd 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 @@ -32,7 +32,7 @@ * HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. */ @ApiModel(description = "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 7d73fee4af..56b2155362 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 @@ -28,7 +28,7 @@ * MetricIdentifier defines the name and optionally selector for a metric */ @ApiModel(description = "MetricIdentifier defines the name and optionally selector for a metric") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 75a9e3214e..438cf6a9c1 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 @@ -32,7 +32,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).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 172fd21fbf..d3a76296d3 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 @@ -32,7 +32,7 @@ * MetricStatus describes the last-read state of a single metric. */ @ApiModel(description = "MetricStatus describes the last-read state of a single metric.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 6d6660234e..a6db898af5 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 @@ -28,7 +28,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") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 ab5975c69b..53e37da007 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 @@ -28,7 +28,7 @@ * MetricValueStatus holds the current value for a metric */ @ApiModel(description = "MetricValueStatus holds the current value for a metric") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 50028c7da3..7e04478d00 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 @@ -30,7 +30,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).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 2c3e534595..3df68c6e3d 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 @@ -30,7 +30,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).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 25235d711e..6a6e3ea0ee 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 @@ -29,7 +29,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b426803576..fc44244f77 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 @@ -29,7 +29,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).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 0418ee1d55..70709e07b1 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 b81967bf1d..a88baf8b48 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 @@ -28,7 +28,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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 3de5d59a2d..94a4a5573c 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 @@ -27,7 +27,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.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-05-22T21:20:49.874193Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-12T23:11:52.603861Z[Etc/UTC]") 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